Skip to content

Commit

Permalink
test(BUX-104): fix tests after changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Aug 16, 2023
1 parent 827c193 commit 3f4b15b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions transports/graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestNewXpub(t *testing.T) {
TransportGraphQL: TransportGraphQL{},
}
err := client.NewXpub(context.Background(), xPubString, nil)
assert.ErrorIs(t, err, ErrAdminKey)
assert.Equal(t, err.Error(), ErrAdminKey.Error())
})

t.Run("return error", func(t *testing.T) {
Expand All @@ -66,7 +66,7 @@ func TestNewXpub(t *testing.T) {
},
}
err := client.NewXpub(context.Background(), xPubString, nil)
assert.ErrorIs(t, err, errTestTerror)
assert.Equal(t, err.Error(), errTestTerror.Error())
})

t.Run("return success", func(t *testing.T) {
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestGetDestination(t *testing.T) {
},
}
destination, err := client.NewDestination(context.Background(), nil)
assert.ErrorIs(t, err, buxerrors.ErrMissingXPriv)
assert.Equal(t, err.Error(), buxerrors.ErrMissingXPriv.Error())
assert.Nil(t, destination)
})

Expand Down Expand Up @@ -171,7 +171,7 @@ func TestDraftTransaction(t *testing.T) {
},
}
destination, err := client.DraftTransaction(context.Background(), config, nil)
assert.ErrorIs(t, err, buxerrors.ErrMissingXPriv)
assert.Equal(t, err.Error(), buxerrors.ErrMissingXPriv.Error())
assert.Nil(t, destination)
})

Expand Down Expand Up @@ -215,7 +215,7 @@ func TestDraftToRecipients(t *testing.T) {
},
}
destination, err := client.DraftToRecipients(context.Background(), recipients, nil)
assert.ErrorIs(t, err, buxerrors.ErrMissingXPriv)
assert.Equal(t, err.Error(), buxerrors.ErrMissingXPriv.Error())
assert.Nil(t, destination)
})

Expand Down

0 comments on commit 3f4b15b

Please sign in to comment.