File tree Expand file tree Collapse file tree
src/Services/Passenger/tests/IntegrationTest/Passenger/Features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,11 +38,18 @@ public async Task should_complete_register_passenger_and_update_to_db()
3838
3939 private Task < bool > WaitUntilPassengerCreatedAsync ( string passportNumber )
4040 {
41- return Fixture . WaitUntilAsync ( async ( ) =>
42- {
43- return await Fixture . ExecuteDbContextAsync ( db =>
44- ValueTask . FromResult ( db . Passengers . Any ( p => p . PassportNumber . Value == passportNumber ) )
45- ) ;
46- } ) ;
41+ var timeout = TimeSpan . FromSeconds ( 30 ) ;
42+ var pollInterval = TimeSpan . FromMilliseconds ( 500 ) ;
43+
44+ return Fixture . WaitUntilAsync (
45+ async ( ) =>
46+ {
47+ return await Fixture . ExecuteDbContextAsync ( db =>
48+ ValueTask . FromResult ( db . Passengers . Any ( p => p . PassportNumber . Value == passportNumber ) )
49+ ) ;
50+ } ,
51+ timeout : timeout ,
52+ pollInterval : pollInterval
53+ ) ;
4754 }
4855}
You can’t perform that action at this time.
0 commit comments