Skip to content

Commit 529b997

Browse files
committed
Using assert instead of require where possible
1 parent d9f0570 commit 529b997

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/deployments_test.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"testing"
2828

2929
"github.com/dchest/uniuri"
30+
"github.com/stretchr/testify/assert"
3031
"github.com/stretchr/testify/require"
3132

3233
driver "github.com/arangodb/go-driver"
@@ -161,10 +162,10 @@ func TestMultiDeployment(t *testing.T) {
161162
collections2, err := db2.Collections(ctx)
162163
require.NoError(t, err, "failed to get collections")
163164

164-
require.True(t, containsCollection(collections1, "col1"), "collection missing")
165-
require.True(t, containsCollection(collections2, "col2"), "collection missing")
166-
require.False(t, containsCollection(collections1, "col2"), "collection must not be in this deployment")
167-
require.False(t, containsCollection(collections2, "col1"), "collection must not be in this deployment")
165+
assert.True(t, containsCollection(collections1, "col1"), "collection missing")
166+
assert.True(t, containsCollection(collections2, "col2"), "collection missing")
167+
assert.False(t, containsCollection(collections1, "col2"), "collection must not be in this deployment")
168+
assert.False(t, containsCollection(collections2, "col1"), "collection must not be in this deployment")
168169

169170
// Cleanup
170171
removeDeployment(deploymentClient, deploymentTemplate1.GetName(), k8sNameSpace)

0 commit comments

Comments
 (0)