aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/stdlib_test.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2021-04-07 12:43:30 -0400
committerJonathan Amsterdam <jba@google.com>2021-04-07 17:15:13 +0000
commitb3344a7197e09f77cc3b911a8de8b2f69eb0206c (patch)
tree536e21f98a9cb8c22597c03e05350e1697af1f7b /internal/postgres/stdlib_test.go
parent668263d32c7c9b93fd062b90a9081104ae03611e (diff)
downloadgo-x-pkgsite-b3344a7197e09f77cc3b911a8de8b2f69eb0206c.tar.xz
internal/postgres: use MustInsertModuleLatest
For most internal/postgres tests, update latest-version information when we insert a module. That is more like what actually happens on the worker, and some features now rely on it, so we should do it everywhere. Some tests still use a custom go.mod file, so we can't switch to MustInsertModuleLatest for those, because it uses a minimal go.mod file. Change-Id: Ie5030aee4ed9c837931fddb8757e37bf6373a8c7 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/307871 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'internal/postgres/stdlib_test.go')
-rw-r--r--internal/postgres/stdlib_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/postgres/stdlib_test.go b/internal/postgres/stdlib_test.go
index ce5f2198..32f41eca 100644
--- a/internal/postgres/stdlib_test.go
+++ b/internal/postgres/stdlib_test.go
@@ -46,7 +46,7 @@ func TestGetStdlibPaths(t *testing.T) {
for _, p := range m.Packages() {
p.Imports = nil
}
- MustInsertModule(ctx, t, testDB, m)
+ MustInsertModuleLatest(ctx, t, testDB, m)
}
got, err := testDB.GetStdlibPathsWithSuffix(ctx, "json")