Skip to content

Commit fa0d8af

Browse files
committed
fix inconsistency in TestConnectCAConfig_GetSet
1 parent 184ded1 commit fa0d8af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

agent/consul/connect_ca_endpoint_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
ca "github.com/hashicorp/consul/agent/connect/ca"
1515
"github.com/hashicorp/consul/agent/structs"
1616
"github.com/hashicorp/consul/testrpc"
17+
"github.com/hashicorp/consul/testutil/retry"
1718
"github.com/hashicorp/net-rpc-msgpackrpc"
1819
"github.com/stretchr/testify/assert"
1920
)
@@ -114,8 +115,9 @@ func TestConnectCAConfig_GetSet(t *testing.T) {
114115
Config: newConfig,
115116
}
116117
var reply interface{}
117-
118-
assert.NoError(msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationSet", args, &reply))
118+
retry.Run(t, func(r *retry.R) {
119+
r.Check(msgpackrpc.CallWithCodec(codec, "ConnectCA.ConfigurationSet", args, &reply))
120+
})
119121
}
120122

121123
// Verify the new config was set

0 commit comments

Comments
 (0)