Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit b625370

Browse files
committed
Fix async unit test received call
1 parent b5cd99f commit b625370

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/UnitTests/GitHub.App/ViewModels/RepositoryCloneViewModelTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,7 @@ public async Task UpdatesMetricsWhenRepositoryCloned()
358358

359359
vm.SelectedRepository = Substitute.For<IRepositoryModel>();
360360
await vm.CloneCommand.ExecuteAsync();
361-
362-
usageTracker.Received().IncrementCloneCount().Forget();
361+
Received.InOrder(async () => await usageTracker.IncrementCloneCount());
363362
}
364363
}
365364
}

0 commit comments

Comments
 (0)