|
|
@@ -71,8 +71,7 @@ func TestCreateAndDeleteCollection(t *testing.T) { |
|
|
|
t.Fatalf("Unable to create collection %q: %v", alias, err) |
|
|
|
} |
|
|
|
|
|
|
|
p := &DeleteCollectionParams{Alias: c.Alias} |
|
|
|
if err := wac.DeleteCollection(p); err != nil { |
|
|
|
if err := wac.DeleteCollection(c.Alias); err != nil { |
|
|
|
t.Fatalf("Unable to delete collection %q: %v", alias, err) |
|
|
|
} |
|
|
|
} |
|
|
@@ -82,8 +81,7 @@ func TestDeleteCollectionUnauthenticated(t *testing.T) { |
|
|
|
|
|
|
|
now := time.Now().Unix() |
|
|
|
alias := fmt.Sprintf("test-collection-does-not-exist-%v", now) |
|
|
|
p := &DeleteCollectionParams{Alias: alias} |
|
|
|
err := wac.DeleteCollection(p) |
|
|
|
err := wac.DeleteCollection(alias) |
|
|
|
if err == nil { |
|
|
|
t.Fatalf("Should not be able to delete collection %q unauthenticated.", alias) |
|
|
|
} |
|
|
|