fix: compare service names in integraiton tests

This commit is contained in:
Luke Kingland 2021-02-15 08:11:38 +09:00
parent 8edd0df836
commit 1551d69b5d
No known key found for this signature in database
GPG Key ID: 4896F75BAF2E1966
1 changed files with 5 additions and 1 deletions

View File

@ -90,7 +90,11 @@ func TestNew(t *testing.T) {
defer del(t, client, "testnew")
// Assert
names, err := client.List()
items, err := client.List()
names := []string{}
for _, item := range items {
names = append(names, item.Name)
}
if err != nil {
t.Fatal(err)
}