internal/postgres: replace LegacyPackage in TestGetStdlibPaths
For golang/go#39629
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -242,7 +242,7 @@ func TestGetStdlibPaths(t *testing.T) {
},
} {
m := sample.LegacyModule(stdlib.ModulePath, data.version, data.suffixes...)
- for _, p := range m.LegacyPackages {
+ for _, p := range m.Packages() {
p.Imports = nil
}
if err := testDB.InsertModule(ctx, m); err != nil {
