viz: Fix jaeger check test (#11425)

64b66f921 changed the behavior of healthcheck.CheckProxyVersionsUpToDate
so that it errors when there are no channels provided. The viz tracing
test uses this utility to generate the expected error message, and it
did so without providing any channels.

This regression is fixed by instantiating the Channels struct with data.
This commit is contained in:
Oliver Gould 2023-09-26 15:07:46 -07:00 committed by GitHub
parent 64b66f9218
commit b010b58680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,11 @@ func TestTracing(t *testing.T) {
}
tpl := template.Must(template.ParseFiles("testdata" + "/" + golden))
versionErr := healthcheck.CheckProxyVersionsUpToDate(pods, version.Channels{})
chs, err := version.NewChannels("test-99.88.77")
if err != nil {
panic(err.Error())
}
versionErr := healthcheck.CheckProxyVersionsUpToDate(pods, chs)
versionErrMsg := ""
if versionErr != nil {
versionErrMsg = versionErr.Error()