connect: use reflect.DeepEqual instead for test

This commit is contained in:
Kyle Havlovitz 2018-07-11 13:10:58 -07:00
parent f9a35a9338
commit 2a40f93ac8
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@ package consul
import (
"os"
"reflect"
"testing"
"time"
@ -12,7 +13,6 @@ import (
"github.com/hashicorp/consul/testutil/retry"
"github.com/hashicorp/net-rpc-msgpackrpc"
"github.com/hashicorp/serf/serf"
"github.com/pascaldekloe/goe/verify"
"github.com/stretchr/testify/require"
)
@ -1140,6 +1140,8 @@ func TestLeader_PersistIntermediateCAs(t *testing.T) {
}
_, newLeaderRoot := leader.getCAProvider()
verify.Values(r, "", root, newLeaderRoot)
if !reflect.DeepEqual(newLeaderRoot, root) {
r.Fatalf("got %v, want %v", newLeaderRoot, root)
}
})
}