diff options
| author | Jonathan Amsterdam <jba@google.com> | 2021-04-12 18:21:05 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2021-04-13 11:11:51 +0000 |
| commit | b6c709824c06f07477efdfa5bd2d5dc7ad76b0fa (patch) | |
| tree | df6e0ac0eca38b69f5f30fea349d0c72cc4190e2 /internal/postgres/insert_module_test.go | |
| parent | b0d7b43aac22485c636bd144e0232b3f9b42453e (diff) | |
| download | go-x-pkgsite-b6c709824c06f07477efdfa5bd2d5dc7ad76b0fa.tar.xz | |
many: remove "retractions" experiment
For golang/go#43265
Change-Id: Iac39814ce532adf5846bb768802a46ad7a77fa84
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/309609
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/postgres/insert_module_test.go')
| -rw-r--r-- | internal/postgres/insert_module_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
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) }) } |
