1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-22 16:57:36 +01:00

Fix broken test (#3374)

This commit is contained in:
Alex Morask 2023-10-24 08:44:37 -04:00 committed by GitHub
parent c442bae2bc
commit 9007aa6556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -466,12 +466,10 @@ public class StripeEventServiceTests
var customer = await GetCustomerAsync();
invoice.Customer = customer;
_stripeFacade.GetInvoice(
invoice.Id,
Arg.Any<InvoiceGetOptions>())
.Returns(invoice);
_stripeFacade.GetCustomer(
invoice.CustomerId,
Arg.Any<CustomerGetOptions>())
.Returns(customer);
// Act
var cloudRegionValid = await _stripeEventService.ValidateCloudRegion(stripeEvent);
@ -479,9 +477,9 @@ public class StripeEventServiceTests
// Assert
cloudRegionValid.Should().BeTrue();
await _stripeFacade.Received(1).GetInvoice(
invoice.Id,
Arg.Any<InvoiceGetOptions>(),
await _stripeFacade.Received(1).GetCustomer(
invoice.CustomerId,
Arg.Any<CustomerGetOptions>(),
Arg.Any<RequestOptions>(),
Arg.Any<CancellationToken>());
}