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/unit_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/unit_test.go')
| -rw-r--r-- | internal/postgres/unit_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/postgres/unit_test.go b/internal/postgres/unit_test.go index cf4f7ea4..37780f35 100644 --- a/internal/postgres/unit_test.go +++ b/internal/postgres/unit_test.go @@ -26,13 +26,11 @@ func TestGetUnitMeta(t *testing.T) { t.Parallel() ctx, cancel := context.WithTimeout(context.Background(), testTimeout*2) defer cancel() - ctx = experiment.NewContext(ctx, internal.ExperimentRetractions) t.Run("legacy", func(t *testing.T) { testGetUnitMeta(t, ctx) }) t.Run("latest", func(t *testing.T) { - testGetUnitMeta(t, experiment.NewContext(ctx, - internal.ExperimentRetractions, internal.ExperimentUnitMetaWithLatest)) + testGetUnitMeta(t, experiment.NewContext(ctx, internal.ExperimentUnitMetaWithLatest)) }) } @@ -295,7 +293,7 @@ func TestGetUnitMetaDiffs(t *testing.T) { if got := modver(gotLegacy); got != test.wantLegacy { t.Errorf("legacy: got %s, want %s", got, test.wantLegacy) } - gotLatest, err := testDB.GetUnitMeta(experiment.NewContext(ctx, internal.ExperimentRetractions, internal.ExperimentUnitMetaWithLatest), + gotLatest, err := testDB.GetUnitMeta(experiment.NewContext(ctx, internal.ExperimentUnitMetaWithLatest), test.path, internal.UnknownModulePath, internal.LatestVersion) if err != nil { t.Fatal(err) |
