Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-13534: Use platform address for version service #3306

Merged
merged 13 commits into from
Nov 18, 2024
7 changes: 4 additions & 3 deletions managed/services/server/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,10 @@ func TestUpdater(t *testing.T) {
u := NewUpdater(watchtowerURL, gRPCMessageMaxSize)
_, latest, err := u.latest(context.Background())
require.NoError(t, err)
assert.NotNil(t, latest)
assert.True(t, strings.HasPrefix(latest.Version.String(), "2.") || strings.HasPrefix(latest.Version.String(), "3."),
"latest version of PMM should have either a '2.' or '3.' prefix")
if latest != nil {
assert.True(t, strings.HasPrefix(latest.Version.String(), "2.") || strings.HasPrefix(latest.Version.String(), "3."),
"latest version of PMM should have either a '2.' or '3.' prefix")
}
})

t.Run("TestParseFile", func(t *testing.T) {
Expand Down
Loading