fix inconsistency in TestConnectCAConfig_GetSet

This commit is contained in:
Kyle Havlovitz 2018-07-26 07:46:47 -07:00
parent 184ded11bf
commit fa0d8aff33
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
1 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ import (
ca "github.com/hashicorp/consul/agent/connect/ca"
"github.com/hashicorp/consul/agent/structs"
"github.com/hashicorp/consul/testrpc"
"github.com/hashicorp/consul/testutil/retry"
"github.com/hashicorp/net-rpc-msgpackrpc"
"github.com/stretchr/testify/assert"
)
@ -114,8 +115,9 @@ func TestConnectCAConfig_GetSet(t *testing.T) {
Config: newConfig,
}
var reply interface{}
assert.NoError(msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationSet", args, &reply))
retry.Run(t, func(r *retry.R) {
r.Check(msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationSet", args, &reply))
})
}
// Verify the new config was set