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

Commit 36f9616

Browse files
committed
Add delay to ensure test works properly
1 parent 6347d04 commit 36f9616

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/UnitTests/GitHub.App/ViewModels/Dialog/RepositoryCloneViewModelTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ public async Task StartsTrueBecomesFalseWhenCompleted()
111111

112112
await col.OriginalCompleted;
113113

114+
// we need to wait slightly because the subscription OnComplete in the model
115+
// runs right after the above await finishes, which means the assert
116+
// gets checked before the flag is set
117+
await Task.Delay(100);
114118
Assert.False(vm.IsBusy);
115119
}
116120

0 commit comments

Comments
 (0)