fix inconsistency in TestConnectCAConfig_GetSet
This commit is contained in:
parent
ebebf9984d
commit
42ab07b398
|
@ -14,6 +14,7 @@ import (
|
||||||
ca "github.com/hashicorp/consul/agent/connect/ca"
|
ca "github.com/hashicorp/consul/agent/connect/ca"
|
||||||
"github.com/hashicorp/consul/agent/structs"
|
"github.com/hashicorp/consul/agent/structs"
|
||||||
"github.com/hashicorp/consul/testrpc"
|
"github.com/hashicorp/consul/testrpc"
|
||||||
|
"github.com/hashicorp/consul/testutil/retry"
|
||||||
"github.com/hashicorp/net-rpc-msgpackrpc"
|
"github.com/hashicorp/net-rpc-msgpackrpc"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
@ -114,8 +115,9 @@ func TestConnectCAConfig_GetSet(t *testing.T) {
|
||||||
Config: newConfig,
|
Config: newConfig,
|
||||||
}
|
}
|
||||||
var reply interface{}
|
var reply interface{}
|
||||||
|
retry.Run(t, func(r *retry.R) {
|
||||||
assert.NoError(msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationSet", args, &reply))
|
r.Check(msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationSet", args, &reply))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify the new config was set
|
// Verify the new config was set
|
||||||
|
|
Loading…
Reference in New Issue