connect/native: fixup command/agent/consul/connect test cases

This commit is contained in:
Seth Hoenig 2020-06-24 09:05:56 -05:00
parent 6154181a64
commit e79b79034d

View file

@ -32,7 +32,7 @@ func TestConnect_newConnect(t *testing.T) {
t.Run("native", func(t *testing.T) {
asr, err := newConnect("", &structs.ConsulConnect{
Native: "foo",
Native: true,
}, nil)
require.NoError(t, err)
require.True(t, asr.Native)
@ -41,7 +41,7 @@ func TestConnect_newConnect(t *testing.T) {
t.Run("with sidecar", func(t *testing.T) {
asr, err := newConnect("redis", &structs.ConsulConnect{
Native: "",
Native: false,
SidecarService: &structs.ConsulSidecarService{
Tags: []string{"foo", "bar"},
Port: "sidecarPort",