mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-10 17:59:38 +08:00
fix: fix ci failed for tests
This commit is contained in:
parent
043c20002c
commit
8d4819624e
@ -38,11 +38,18 @@ public class CompleteRegisterPassengerTests : PassengerIntegrationTestBase
|
||||
|
||||
private Task<bool> WaitUntilPassengerCreatedAsync(string passportNumber)
|
||||
{
|
||||
return Fixture.WaitUntilAsync(async () =>
|
||||
{
|
||||
return await Fixture.ExecuteDbContextAsync(db =>
|
||||
ValueTask.FromResult(db.Passengers.Any(p => p.PassportNumber.Value == passportNumber))
|
||||
);
|
||||
});
|
||||
var timeout = TimeSpan.FromSeconds(30);
|
||||
var pollInterval = TimeSpan.FromMilliseconds(500);
|
||||
|
||||
return Fixture.WaitUntilAsync(
|
||||
async () =>
|
||||
{
|
||||
return await Fixture.ExecuteDbContextAsync(db =>
|
||||
ValueTask.FromResult(db.Passengers.Any(p => p.PassportNumber.Value == passportNumber))
|
||||
);
|
||||
},
|
||||
timeout: timeout,
|
||||
pollInterval: pollInterval
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user