Skip to content

Commit be85c2e

Browse files
Merge pull request #118 from TransactionProcessing/specflow/#117_nightlyfailure
Tightened up estate create
2 parents 573ab35 + 59cb63e commit be85c2e

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

FileProcessor.IntegrationTests/Common/SharedSteps.cs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)