Skip to content

Commit

Permalink
test: Increase waiting times again
Browse files Browse the repository at this point in the history
  • Loading branch information
MH321Productions committed Jan 13, 2025
1 parent ad37cb7 commit f9f1511
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -125,6 +126,8 @@ public async Task Deletes_relationships()
// Assert
var assertionContext = GetService<RelationshipsDbContext>();

await Task.Delay(1.Seconds());

var relationshipsAfterAct = await assertionContext.Relationships.Where(Relationship.HasParticipant(identityToBeDeleted.Address)).ToListAsync();
relationshipsAfterAct.Should().BeEmpty();

Check failure on line 132 in Applications/IdentityDeletionJobs/test/Job.IdentityDeletion.Tests.Integration/ActualDeletionWorkerTests.cs

View workflow job for this annotation

GitHub Actions / Run identity-deletion-job Integration Tests (on sqlserver)

Backbone.Job.IdentityDeletion.Tests.Integration.ActualDeletionWorkerTests.Deletes_relationships

Expected relationshipsAfterAct to be empty, but found at least one item { Backbone.Modules.Relationships.Domain.Aggregates.Relationships.Relationship { AuditLog = <null>, CreatedAt = <2025-01-13 10:17:53.1875975>, CreationContent = {empty}, CreationResponseContent = {empty}, DomainEvents = {empty}, From = Backbone.DevelopmentKit.Identity.ValueObjects.IdentityAddress { Value = "did:e:prod.enmeshed.eu:dids:a6a9b8faee3d7fd2dd23bd" }, FromHasDecomposed = False, Id = Backbone.Modules.Relationships.Domain.Aggregates.Relationships.RelationshipId { Value = "RELAFDnciA8AETYiiX56" }, LastModifiedBy = "[Member 'LastModifiedBy' threw an exception: 'Value cannot be null. (Parameter 'source')']", RelationshipTemplate = <null>, RelationshipTemplateId = Backbone.Modules.Relationships.Domain.Aggregates.RelationshipTemplates.RelationshipTemplateId { Value = "RLT6girehqS0cso1bChw" }, Status = RelationshipStatus.Active {value: 20}, To = Backbone.DevelopmentKit.Identity.ValueObjects.IdentityAddress { Value = "did:e:prod.enmeshed.eu:dids:41b0c3a07d0707eae19fe8" }, ToHasDecomposed = False } }.
}
Expand Down

0 comments on commit f9f1511

Please sign in to comment.