Skip to content

Commit

Permalink
Use require
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Nov 13, 2024
1 parent 94e77fc commit 8a5d75c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/client/transaction_sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,16 +381,16 @@ func TestTransactionSender_SendTransaction_aggregateTxResults(t *testing.T) {
t.Run(testCase.Name, func(t *testing.T) {
txResult, err := aggregateTxResults(testCase.ResultsByCode)
if testCase.ExpectedTxResult != "" {
assert.EqualError(t, txResult.Error(), testCase.ExpectedTxResult)
require.EqualError(t, txResult.Error(), testCase.ExpectedTxResult)
}

logger.Sugared(logger.Test(t)).Info("Map: " + fmt.Sprint(testCase.ResultsByCode))
logger.Sugared(logger.Test(t)).Criticalw("observed invariant violation on SendTransaction", "resultsByCode", testCase.ResultsByCode, "err", err)

if testCase.ExpectedCriticalErr == "" {
assert.NoError(t, err)
require.NoError(t, err)
} else {
assert.EqualError(t, err, testCase.ExpectedCriticalErr)
require.EqualError(t, err, testCase.ExpectedCriticalErr)
}
})
}
Expand Down

0 comments on commit 8a5d75c

Please sign in to comment.