connect: use reflect.DeepEqual instead for test

This commit is contained in:
Kyle Havlovitz 2018-07-11 13:10:58 -07:00
parent 4e5fb6bc19
commit f95c6807e7
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 ( import (
"os" "os"
"reflect"
"testing" "testing"
"time" "time"
@ -12,7 +13,6 @@ import (
"github.com/hashicorp/consul/testutil/retry" "github.com/hashicorp/consul/testutil/retry"
"github.com/hashicorp/net-rpc-msgpackrpc" "github.com/hashicorp/net-rpc-msgpackrpc"
"github.com/hashicorp/serf/serf" "github.com/hashicorp/serf/serf"
"github.com/pascaldekloe/goe/verify"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
@ -1140,6 +1140,8 @@ func TestLeader_PersistIntermediateCAs(t *testing.T) {
} }
_, newLeaderRoot := leader.getCAProvider() _, newLeaderRoot := leader.getCAProvider()
verify.Values(r, "", root, newLeaderRoot) if !reflect.DeepEqual(newLeaderRoot, root) {
r.Fatalf("got %v, want %v", newLeaderRoot, root)
}
}) })
} }