From 42ab07b39823cb4ebf23c494006943d6f797973f Mon Sep 17 00:00:00 2001 From: Kyle Havlovitz Date: Thu, 26 Jul 2018 07:46:47 -0700 Subject: [PATCH] fix inconsistency in TestConnectCAConfig_GetSet --- agent/consul/connect_ca_endpoint_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agent/consul/connect_ca_endpoint_test.go b/agent/consul/connect_ca_endpoint_test.go index bcd706903..dd9c32556 100644 --- a/agent/consul/connect_ca_endpoint_test.go +++ b/agent/consul/connect_ca_endpoint_test.go @@ -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