From f9f1511882bb6d5c7a98e3bfd995c0656af77cc5 Mon Sep 17 00:00:00 2001 From: Mika Herrmann Date: Mon, 13 Jan 2025 11:05:56 +0100 Subject: [PATCH] test: Increase waiting times again --- .../Features/SyncRuns/{id}/ExternalEvents/GET.feature | 2 +- .../ActualDeletionWorkerTests.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Applications/ConsumerApi/test/ConsumerApi.Tests.Integration/Features/SyncRuns/{id}/ExternalEvents/GET.feature b/Applications/ConsumerApi/test/ConsumerApi.Tests.Integration/Features/SyncRuns/{id}/ExternalEvents/GET.feature index 85ac177cbc..68894833a5 100644 --- a/Applications/ConsumerApi/test/ConsumerApi.Tests.Integration/Features/SyncRuns/{id}/ExternalEvents/GET.feature +++ b/Applications/ConsumerApi/test/ConsumerApi.Tests.Integration/Features/SyncRuns/{id}/ExternalEvents/GET.feature @@ -26,7 +26,7 @@ Feature: GET /SyncRuns/{id}/ExternalEvents And an active Relationship r between i1 and i2 And i1 has sent a Message m to i2 And i1 has terminated r - And 4 second(s) have passed + And 5 second(s) have passed And a sync run sr started by i2 When i2 sends a GET request to the /SyncRuns/sr.id/ExternalEvents endpoint Then the response status code is 200 (OK) diff --git a/Applications/IdentityDeletionJobs/test/Job.IdentityDeletion.Tests.Integration/ActualDeletionWorkerTests.cs b/Applications/IdentityDeletionJobs/test/Job.IdentityDeletion.Tests.Integration/ActualDeletionWorkerTests.cs index 8832d65643..01ef1d4a59 100644 --- a/Applications/IdentityDeletionJobs/test/Job.IdentityDeletion.Tests.Integration/ActualDeletionWorkerTests.cs +++ b/Applications/IdentityDeletionJobs/test/Job.IdentityDeletion.Tests.Integration/ActualDeletionWorkerTests.cs @@ -8,6 +8,7 @@ using Backbone.Modules.Relationships.Domain.Aggregates.RelationshipTemplates; using Backbone.Modules.Relationships.Infrastructure.Persistence.Database; using Backbone.Tooling; +using Backbone.Tooling.Extensions; using Backbone.UnitTestTools.Extensions; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; @@ -125,6 +126,8 @@ public async Task Deletes_relationships() // Assert var assertionContext = GetService(); + await Task.Delay(1.Seconds()); + var relationshipsAfterAct = await assertionContext.Relationships.Where(Relationship.HasParticipant(identityToBeDeleted.Address)).ToListAsync(); relationshipsAfterAct.Should().BeEmpty(); }