Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff2 authored and Enterprize1 committed Dec 9, 2024
1 parent 8e40b35 commit ddd88bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Fluss.UnitTest/Core/UnitOfWork/UnitOfWorkTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ await Assert.ThrowsAsync<InvalidOperationException>(async () =>
public async Task FailingCommitDoesNotCacheEventsToWrite()
{
_policies.Add(new AllowAllPolicy());

try
{
await _unitOfWorkFactory.Commit(async unitOfWork =>
Expand All @@ -352,10 +352,10 @@ await _unitOfWorkFactory.Commit(async unitOfWork =>
}

await _unitOfWorkFactory.Commit(_ => ValueTask.CompletedTask);

var unitOfWork = GetUnitOfWork();
var aggregate = await unitOfWork.GetAggregate<TestAggregate, int>(100);

Assert.False(aggregate.Exists);
}

Expand Down
1 change: 0 additions & 1 deletion src/Fluss/UnitOfWork/UnitOfWork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public ValueTask Return()
_validator = null;
_userIdProvider = null;
_consistentVersion = null;

PublishedEventEnvelopes.Clear();
_readModels.Clear();
_isInstantiated = false;
Expand Down

0 comments on commit ddd88bd

Please sign in to comment.