internal/frontend: fix TestServer
Fix broken TestServer due to merge order issue with CL 277512 and
CL 277698.
Change-Id: I0f7302753d70186b177c42ef4ab6736a06777cea
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/277958
Run-TryBot: Julie Qiu <julie@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Trust: Julie Qiu <julie@golang.org>
diff --git a/internal/frontend/server_test.go b/internal/frontend/server_test.go
index 2f2982d..668f989 100644
--- a/internal/frontend/server_test.go
+++ b/internal/frontend/server_test.go
@@ -544,7 +544,7 @@
FormattedVersion: "v0.69.0",
LicenseType: "MIT",
LicenseFilePath: "LICENSE",
- IsLatestMinor: true,
+ IsLatestMinor: false,
IsLatestMajor: true,
UnitURLFormat: "/cloud.google.com/go%s/pubsublite",
LatestLink: "/cloud.google.com/go/pubsublite",
@@ -559,7 +559,7 @@
FormattedVersion: "v0.4.0",
LicenseType: "MIT",
LicenseFilePath: "LICENSE",
- IsLatestMinor: false,
+ IsLatestMinor: true,
IsLatestMajor: true,
UnitURLFormat: "/cloud.google.com/go/pubsublite%s",
LatestLink: "/cloud.google.com/go/pubsublite",
@@ -911,7 +911,7 @@
urlPath: "/cloud.google.com/go/pubsublite",
wantStatusCode: http.StatusOK,
want: in("",
- pagecheck.UnitHeader(pubsubliteDir, unversioned, isPackage)),
+ pagecheck.UnitHeader(pubsubliteMod, unversioned, isPackage)),
},
{
name: "pubsublite module",