require -> assert until rebase

This commit is contained in:
Paul Banks 2018-03-27 10:49:27 +01:00 committed by Mitchell Hashimoto
parent 894ee3c5b0
commit 3efe3f8aff
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 9 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import (
"github.com/hashicorp/consul/testutil"
"github.com/hashicorp/consul/testutil/retry"
"github.com/pascaldekloe/goe/verify"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
)
func TestAPI_HealthNode(t *testing.T) {
@ -297,7 +297,10 @@ func TestAPI_HealthConnect(t *testing.T) {
Port: 8000,
}
err := agent.ServiceRegister(reg)
require.Nil(t, err)
// TODO replace with require.Nil when we have it vendored in OSS and rebased
if !assert.Nil(t, err) {
return
}
defer agent.ServiceDeregister("foo")
// Register the proxy
@ -308,7 +311,10 @@ func TestAPI_HealthConnect(t *testing.T) {
ProxyDestination: "foo",
}
err = agent.ServiceRegister(proxyReg)
require.Nil(t, err)
// TODO replace with require.Nil when we have it vendored in OSS and rebased
if !assert.Nil(t, err) {
return
}
defer agent.ServiceDeregister("foo-proxy")
retry.Run(t, func(r *retry.R) {