internal/postgres: replace LegacyPackage in TestSearchPenalties
For golang/go#39629
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -583,7 +583,7 @@ func TestSearchPenalties(t *testing.T) {
for path, m := range modules {
v := sample.LegacyModule(path, sample.VersionString, "p")
- v.LegacyPackages[0].IsRedistributable = m.redist
+ v.Packages()[0].IsRedistributable = m.redist
v.IsRedistributable = m.redist
v.HasGoMod = m.hasGoMod
if err := testDB.InsertModule(ctx, v); err != nil {
