From b6c709824c06f07477efdfa5bd2d5dc7ad76b0fa Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Mon, 12 Apr 2021 18:21:05 -0400 Subject: many: remove "retractions" experiment For golang/go#43265 Change-Id: Iac39814ce532adf5846bb768802a46ad7a77fa84 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/309609 Trust: Jonathan Amsterdam Run-TryBot: Jonathan Amsterdam Reviewed-by: Julie Qiu --- internal/postgres/insert_module_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/postgres/insert_module_test.go') diff --git a/internal/postgres/insert_module_test.go b/internal/postgres/insert_module_test.go index 291bb4c3..6478f160 100644 --- a/internal/postgres/insert_module_test.go +++ b/internal/postgres/insert_module_test.go @@ -37,6 +37,7 @@ func TestInsertModule(t *testing.T) { for _, test := range []struct { name string module *internal.Module + goMod string }{ { name: "valid test", @@ -74,15 +75,16 @@ func TestInsertModule(t *testing.T) { m.DeprecationComment = "use v2" return m }(), + goMod: "module " + sample.ModulePath + " // Deprecated: use v2", }, } { t.Run(test.name, func(t *testing.T) { testDB, release := acquire(t) defer release() - MustInsertModule(ctx, t, testDB, test.module) + MustInsertModuleGoMod(ctx, t, testDB, test.module, test.goMod) // Test that insertion of duplicate primary key won't fail. - MustInsertModule(ctx, t, testDB, test.module) + MustInsertModuleGoMod(ctx, t, testDB, test.module, test.goMod) checkModule(ctx, t, testDB, test.module) }) } -- cgit v1.3-5-g9baa