File tree Expand file tree Collapse file tree
FileProcessor.IntegrationTests/Common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,17 +55,23 @@ public async Task WhenICreateTheFollowingEstates(Table table)
5555 EstateId = Guid . NewGuid ( ) ,
5656 EstateName = estateName
5757 } ;
58+ CreateEstateResponse response = null ;
59+ await Retry . For ( async ( ) =>
60+ {
61+ response = await this . TestingContext . DockerHelper . EstateClient
62+ . CreateEstate ( this . TestingContext . AccessToken , createEstateRequest , CancellationToken . None )
63+ . ConfigureAwait ( false ) ;
5864
59- CreateEstateResponse response = await this . TestingContext . DockerHelper . EstateClient
60- . CreateEstate ( this . TestingContext . AccessToken , createEstateRequest , CancellationToken . None )
61- . ConfigureAwait ( false ) ;
65+ response . ShouldNotBeNull ( ) ;
66+ response . EstateId . ShouldNotBe ( Guid . Empty ) ;
6267
63- response . ShouldNotBeNull ( ) ;
64- response . EstateId . ShouldNotBe ( Guid . Empty ) ;
68+ } , retryFor : TimeSpan . FromMinutes ( 1 ) ,
69+ retryInterval : TimeSpan . FromSeconds ( 30 ) ) ;
6570
71+
6672 this . TestingContext . Logger . LogInformation ( $ "Estate { estateName } created with Id { response . EstateId } ") ;
67-
68- EstateResponse estate = null ;
73+
74+ EstateResponse estate = null ;
6975 await Retry . For ( async ( ) =>
7076 {
7177 estate = await this . TestingContext . DockerHelper . EstateClient
You can’t perform that action at this time.
0 commit comments