From f9279608351b2e5ac81d7ae75d7b449e13ee4073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Sala=C3=BCn?= Date: Thu, 25 Jul 2024 09:36:03 +0200 Subject: [PATCH] fix: test on txid conflict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Clément Salaün --- pkg/storage/sqlstorage/store_ledger_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/sqlstorage/store_ledger_test.go b/pkg/storage/sqlstorage/store_ledger_test.go index 01ea008ec..1c88ab704 100644 --- a/pkg/storage/sqlstorage/store_ledger_test.go +++ b/pkg/storage/sqlstorage/store_ledger_test.go @@ -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)