Browse Source

Re-order expected/actual for assertContainerState in consul container tests (#18157)

Re-order expected/actual, consul container tests
pull/17943/head^2
Ronald 1 year ago committed by GitHub
parent
commit
03cf37e7b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      GNUmakefile
  2. 2
      test/integration/consul-container/libs/assert/service.go

2
GNUmakefile

@ -54,7 +54,7 @@ QUIET=
endif
ifeq ("$(GOTAGS)","")
CONSUL_COMPAT_TEST_IMAGE=consul
CONSUL_COMPAT_TEST_IMAGE=hashicorp/consul
else
CONSUL_COMPAT_TEST_IMAGE=hashicorp/consul-enterprise
endif

2
test/integration/consul-container/libs/assert/service.go

@ -252,5 +252,5 @@ func AssertFortioNameWithClient(t *testing.T, urlbase string, name string, reqHo
func AssertContainerState(t *testing.T, service libservice.Service, state string) {
containerStatus, err := service.GetStatus()
require.NoError(t, err)
require.Equal(t, containerStatus, state, fmt.Sprintf("Expected: %s. Got %s", containerStatus, state))
require.Equal(t, containerStatus, state, fmt.Sprintf("Expected: %s. Got %s", state, containerStatus))
}

Loading…
Cancel
Save