Skip to content

Commit

Permalink
fix: test on txid conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Clément Salaün <salaun.clement@gmail.com>
  • Loading branch information
altitude committed Jul 25, 2024
1 parent a45ce55 commit f927960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/sqlstorage/store_ledger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func testCommit(t *testing.T, store *sqlstorage.Store) {

err = store.Commit(context.Background(), tx)
require.Error(t, err)
require.True(t, storage.IsErrorCode(err, storage.ConstraintFailed))
require.True(t, storage.IsErrorCode(err, storage.ConstraintTXID))

cursor, err := store.GetLogs(context.Background(), ledger.NewLogsQuery())
require.NoError(t, err)
Expand Down

0 comments on commit f927960

Please sign in to comment.