Skip to content

Commit

Permalink
get rid of ensure.NotDeepEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Nov 2, 2024
1 parent 99c5d11 commit 50ab646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"testing"
"time"

"github.com/facebookgo/ensure"
"github.com/mailgun/mailgun-go/v4"
"github.com/mailgun/mailgun-go/v4/events"
"github.com/stretchr/testify/require"
Expand All @@ -30,7 +29,7 @@ func TestEventIteratorGetNext(t *testing.T) {
require.True(t, len(secondPage) != 0)

// Pages should be different
ensure.NotDeepEqual(t, firstPage, secondPage)
require.NotEqual(t, firstPage, secondPage)
require.NotEqual(t, firstIterator.Paging.Next, it.Paging.Next)
require.NotEqual(t, firstIterator.Paging.Previous, it.Paging.Previous)
require.NoError(t, it.Err())
Expand All @@ -49,7 +48,7 @@ func TestEventIteratorGetNext(t *testing.T) {

// Calling first resets the iterator to the first page
require.True(t, it.Next(ctx, &secondPage))
ensure.NotDeepEqual(t, firstPage, secondPage)
require.NotEqual(t, firstPage, secondPage)

// Last()
var lastPage []mailgun.Event
Expand Down
5 changes: 2 additions & 3 deletions routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"testing"

"github.com/facebookgo/ensure"
"github.com/mailgun/mailgun-go/v4"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -82,7 +81,7 @@ func TestRoutesIterator(t *testing.T) {
require.True(t, len(secondPage) != 0)

// Pages should be different
ensure.NotDeepEqual(t, firstPage, secondPage)
require.NotEqual(t, firstPage, secondPage)
require.True(t, firstIterator.TotalCount != 0)

// Previous()
Expand All @@ -99,7 +98,7 @@ func TestRoutesIterator(t *testing.T) {

// Calling first resets the iterator to the first page
require.True(t, it.Next(ctx, &secondPage))
ensure.NotDeepEqual(t, firstPage, secondPage)
require.NotEqual(t, firstPage, secondPage)

// Last()
require.True(t, it.Last(ctx, &firstPage))
Expand Down

0 comments on commit 50ab646

Please sign in to comment.