From 18785fea1637aeab03c7cf79927a1409f3bed680 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 9 Sep 2020 17:32:52 +0200 Subject: [PATCH] Tests fixed --- .../EventSourcing/Grains/EventConsumerGrainTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/tests/Squidex.Infrastructure.Tests/EventSourcing/Grains/EventConsumerGrainTests.cs b/backend/tests/Squidex.Infrastructure.Tests/EventSourcing/Grains/EventConsumerGrainTests.cs index f98d78869..c9fd499b2 100644 --- a/backend/tests/Squidex.Infrastructure.Tests/EventSourcing/Grains/EventConsumerGrainTests.cs +++ b/backend/tests/Squidex.Infrastructure.Tests/EventSourcing/Grains/EventConsumerGrainTests.cs @@ -186,7 +186,7 @@ namespace Squidex.Infrastructure.EventSourcing.Grains await OnEventAsync(eventSubscription, @event); - AssetGrainState(new EventConsumerState { IsStopped = false, Position = @event.EventPosition, Error = null }); + AssetGrainState(new EventConsumerState { IsStopped = false, Position = @event.EventPosition, Error = null, Count = 1 }); A.CallTo(() => grainState.WriteAsync()) .MustHaveHappened(1, Times.Exactly); @@ -208,7 +208,7 @@ namespace Squidex.Infrastructure.EventSourcing.Grains await OnEventAsync(eventSubscription, @event); - AssetGrainState(new EventConsumerState { IsStopped = false, Position = @event.EventPosition, Error = null }); + AssetGrainState(new EventConsumerState { IsStopped = false, Position = @event.EventPosition, Error = null, Count = 1 }); A.CallTo(() => grainState.WriteAsync()) .MustHaveHappened(1, Times.Exactly); @@ -230,7 +230,7 @@ namespace Squidex.Infrastructure.EventSourcing.Grains await OnEventAsync(eventSubscription, @event); - AssetGrainState(new EventConsumerState { IsStopped = false, Position = @event.EventPosition, Error = null }); + AssetGrainState(new EventConsumerState { IsStopped = false, Position = @event.EventPosition, Error = null, Count = 1 }); A.CallTo(() => grainState.WriteAsync()) .MustHaveHappened(1, Times.Exactly);