diff options
| author | Jonathan Amsterdam <jba@google.com> | 2021-08-13 17:35:11 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2021-08-16 14:04:46 +0000 |
| commit | 46af8a773c35f5295c2caefaeabf84fb9683a8b6 (patch) | |
| tree | d8807c9a59ebf98f637eb33b77b1d6c91a35ec6f /internal/postgres/insert_module_test.go | |
| parent | 01a72d71a6202e77ab9373fb6b5efee6d8588e8e (diff) | |
| download | go-x-pkgsite-46af8a773c35f5295c2caefaeabf84fb9683a8b6.tar.xz | |
internal/postgres: rename ReInsertLatestVersion
Rename to ReconcileSearch, which better describes its purpose.
Change-Id: Ib7562e6bf511ff1ad88129619feec110c81168d3
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/342169
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/postgres/insert_module_test.go b/internal/postgres/insert_module_test.go index 2f5fbac3..42510eea 100644 --- a/internal/postgres/insert_module_test.go +++ b/internal/postgres/insert_module_test.go @@ -615,7 +615,7 @@ func TestIsAlternativeModulePath(t *testing.T) { } } -func TestReInsertLatestVersion(t *testing.T) { +func TestReconcileSearch(t *testing.T) { testDB, release := acquire(t) defer release() ctx := context.Background() @@ -640,7 +640,7 @@ func TestReInsertLatestVersion(t *testing.T) { }); err != nil { t.Fatal(err) } - if err := testDB.ReInsertLatestVersion(ctx, modulePath, version, status); err != nil { + if err := testDB.ReconcileSearch(ctx, modulePath, version, status); err != nil { t.Fatal(err) } } |
