aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/unit_test.go
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2021-06-04 18:48:56 -1000
committerJulie Qiu <julie@golang.org>2021-06-07 16:08:09 +0000
commit43b1879f55c53e3f55b2e3ec8f9f41f9bb77bac2 (patch)
tree65b7927f537a50205396e25f9d4b0c42e932c343 /internal/postgres/unit_test.go
parentae6779bbf22691cf824c12090aa6578eca525c4a (diff)
downloadgo-x-pkgsite-43b1879f55c53e3f55b2e3ec8f9f41f9bb77bac2.tar.xz
internal/version: drop Version suffix from constants
To avoid repetition, the "Version" suffix in version.LatestVersion, version.MainVersion, and version.MasterVersion are dropped. The current version.Latest function is renamed to version.LatestVersion. Change-Id: I649229939223b686dd95a137df4871a899f48aab Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/325390 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'internal/postgres/unit_test.go')
-rw-r--r--internal/postgres/unit_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/postgres/unit_test.go b/internal/postgres/unit_test.go
index e091600d..64e0b57f 100644
--- a/internal/postgres/unit_test.go
+++ b/internal/postgres/unit_test.go
@@ -186,7 +186,7 @@ func testGetUnitMeta(t *testing.T, ctx context.Context) {
test.module = internal.UnknownModulePath
}
if test.version == "" {
- test.version = version.LatestVersion
+ test.version = version.Latest
}
want := sample.UnitMeta(
test.path,
@@ -330,7 +330,7 @@ func TestGetUnitMetaBypass(t *testing.T) {
test.module = internal.UnknownModulePath
}
if test.version == "" {
- test.version = version.LatestVersion
+ test.version = version.Latest
}
test.want = sample.UnitMeta(
test.path,