From 9e9ef84390b256327c06b735597853d38af28f0f Mon Sep 17 00:00:00 2001 From: Michel Vocks Date: Mon, 1 Jul 2019 11:17:46 +0200 Subject: [PATCH] Fixed failing test --- vault/token_store_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vault/token_store_test.go b/vault/token_store_test.go index 613688c1d739..d03975d30b5d 100644 --- a/vault/token_store_test.go +++ b/vault/token_store_test.go @@ -3056,7 +3056,7 @@ func TestTokenStore_RoleCRUD(t *testing.T) { "renewable": true, "token_type": "default-service", "token_num_uses": 123, - "allowed_entity_aliases": []string{}, + "allowed_entity_aliases": []string(nil), } if resp.Data["bound_cidrs"].([]*sockaddr.SockAddrMarshaler)[0].String() != "0.0.0.0/0" { @@ -3116,7 +3116,7 @@ func TestTokenStore_RoleCRUD(t *testing.T) { "explicit_max_ttl": int64(288000), "renewable": false, "token_type": "default-service", - "allowed_entity_aliases": []string{}, + "allowed_entity_aliases": []string(nil), } if resp.Data["bound_cidrs"].([]*sockaddr.SockAddrMarshaler)[0].String() != "0.0.0.0/0" { @@ -3166,7 +3166,7 @@ func TestTokenStore_RoleCRUD(t *testing.T) { "token_period": int64(0), "renewable": false, "token_type": "default-service", - "allowed_entity_aliases": []string{}, + "allowed_entity_aliases": []string(nil), } if resp.Data["bound_cidrs"].([]*sockaddr.SockAddrMarshaler)[0].String() != "0.0.0.0/0" { @@ -3216,7 +3216,7 @@ func TestTokenStore_RoleCRUD(t *testing.T) { "token_period": int64(0), "renewable": false, "token_type": "default-service", - "allowed_entity_aliases": []string{}, + "allowed_entity_aliases": []string(nil), } if diff := deep.Equal(expected, resp.Data); diff != nil {