diff --git a/packages/imp_test.go b/packages/imp_test.go index acf6dc31..7fcb190e 100644 --- a/packages/imp_test.go +++ b/packages/imp_test.go @@ -56,4 +56,13 @@ func Test_loadByExport(t *testing.T) { FindExport(".", "C") } +func TestGoListExportCacheSync(t *testing.T) { + GoListExportCacheSync("..") + p := NewImporter(nil, "..") + pkg, err := p.Import("github.com/goplus/gox/internal/foo") + if err != nil { + t.Fatal("Import failed:", pkg, err) + } +} + // ----------------------------------------------------------------------------