Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fix/maybe-broken-st…
Browse files Browse the repository at this point in the history
…orage
  • Loading branch information
asdacap committed Nov 22, 2024
2 parents cab2406 + 5c1ca15 commit 88cedf8
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 @@ -50,10 +50,11 @@ public void TestOnTreeSyncFinish_CallVisit()
ITreeSync treeSync = ctx.Resolve<ITreeSync>();
IStateReader stateReader = ctx.Resolve<IStateReader>();

treeSync.SyncCompleted += Raise.EventWith(null, new ITreeSync.SyncCompletedEventArgs(TestItem.KeccakA));
treeSync.SyncCompleted += Raise.EventWith(null, new ITreeSync.SyncCompletedEventArgs(TestItem.KeccakA));

stateReader
.Received()
.Received(1)
.RunTreeVisitor(Arg.Any<TrieStatsCollector>(), Arg.Is(TestItem.KeccakA), Arg.Any<VisitingOptions>());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public void Start()

private void TreeSyncOnOnVerifyPostSyncCleanup(object? sender, ITreeSync.SyncCompletedEventArgs evt)
{
treeSync.SyncCompleted -= TreeSyncOnOnVerifyPostSyncCleanup;

ManualResetEvent processingBlocker = new ManualResetEvent(false);

processingQueue.BlockRemoved += ProcessingQueueOnBlockRemoved;
Expand Down

0 comments on commit 88cedf8

Please sign in to comment.