Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
akwasi-cot committed Sep 2, 2024
1 parent 1fc7721 commit 4a021a3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Marqeta.Core.Sdk.Tests/MarqetaClientTests/TransactionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Marqeta.Core.Sdk.Models;
using Marqeta.Core.Sdk.Tests.MarqetaClientTests.Factories;
using Marqeta.Core.Sdk.Tests.MarqetaClientTests.Helpers;
using Marqeta.Core.Sdk.Transactions;
using Marqeta.Core.Sdk.Transactions.Authorizationreversal;
using Xunit;

Expand Down Expand Up @@ -51,10 +52,13 @@ public async void Ensure_velocity_control_lifetime_is_honoured()
OriginalTransactionToken = simulateResponse1.Transaction.Token
};

var updatedResponse = await client.Transactions.Authorizationreversal.PostAsync(reversalRequest);
var reversalResponse = await client.Transactions.Authorizationreversal.PostAsync(reversalRequest);
Assert.NotNull(reversalResponse);

Assert.NotNull(updatedResponse);
Assert.Equal(Transaction_model_state.COMPLETION, updatedResponse.State);
var updatedTransactionToken = await client.Transactions[simulateResponse1.Transaction.Token].GetAsync();


Assert.Equal(Transaction_model_state.CLEARED, updatedTransactionToken.State);
}
}
}

0 comments on commit 4a021a3

Please sign in to comment.