From f680ac69afb73f1af3e8cf8eb331de1753a5c008 Mon Sep 17 00:00:00 2001 From: Geoffrey Ragot Date: Thu, 26 Sep 2024 00:46:49 +0200 Subject: [PATCH] fix: test logging --- internal/storage/ledger/transactions_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/storage/ledger/transactions_test.go b/internal/storage/ledger/transactions_test.go index 05b908954..d45b40841 100644 --- a/internal/storage/ledger/transactions_test.go +++ b/internal/storage/ledger/transactions_test.go @@ -146,11 +146,11 @@ func TestTransactionUpdateMetadata(t *testing.T) { require.NoError(t, err) // check that the database returns metadata - tx, err := store.GetTransaction(context.Background(), ledgercontroller.NewGetTransactionQuery(tx1.ID).WithExpandVolumes().WithExpandEffectiveVolumes()) + tx, err := store.GetTransaction(ctx, ledgercontroller.NewGetTransactionQuery(tx1.ID).WithExpandVolumes().WithExpandEffectiveVolumes()) require.NoError(t, err, "getting transaction should not fail") require.Equal(t, tx.Metadata, metadata.Metadata{"foo1": "bar2"}, "metadata should be equal") - tx, err = store.GetTransaction(context.Background(), ledgercontroller.NewGetTransactionQuery(tx2.ID).WithExpandVolumes().WithExpandEffectiveVolumes()) + tx, err = store.GetTransaction(ctx, ledgercontroller.NewGetTransactionQuery(tx2.ID).WithExpandVolumes().WithExpandEffectiveVolumes()) require.NoError(t, err, "getting transaction should not fail") require.Equal(t, tx.Metadata, metadata.Metadata{"foo2": "bar2"}, "metadata should be equal")