Skip to content

Commit

Permalink
Use require
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarlso committed Oct 10, 2024
1 parent e693ae4 commit 4939347
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/databases/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestAddEndpointInformation(t *testing.T) {
Expand All @@ -20,7 +21,7 @@ func TestAddEndpointInformation(t *testing.T) {

conn, err := addConnectionInfo(attrs)

assert.Nil(t, err)
require.NoError(t, err)
assert.NotNil(t, conn)

assert.Len(t, conn, 3)
Expand All @@ -42,6 +43,6 @@ func TestAddEndpointInformationFailedDecode(t *testing.T) {

conn, err := addConnectionInfo(attrs)

assert.NotNil(t, err)
require.Error(t, err)
assert.Nil(t, conn)
}

0 comments on commit 4939347

Please sign in to comment.