Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 7d4bd54

Browse files
Adding more detail to tests
1 parent 6dcc6c7 commit 7d4bd54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tests/IntegrationTests/Events/RepositoryManagerTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ public async Task ShouldDetectChangesToRemotes()
365365
await TaskManager.Wait();
366366
RepositoryManager.WaitForEvents();
367367
WaitForNotBusy(repositoryManagerEvents);
368+
repositoryManagerEvents.OnRemoteBranchListUpdated.WaitOne(TimeSpan.FromSeconds(1));
369+
repositoryManagerEvents.OnLocalBranchListUpdated.WaitOne(TimeSpan.FromSeconds(1));
368370

369371
repositoryManagerListener.Received().OnIsBusyChanged(Args.Bool);
370372
repositoryManagerListener.DidNotReceive().OnStatusUpdated(Args.GitStatus);
@@ -385,6 +387,8 @@ public async Task ShouldDetectChangesToRemotes()
385387
await TaskManager.Wait();
386388
RepositoryManager.WaitForEvents();
387389
WaitForNotBusy(repositoryManagerEvents);
390+
repositoryManagerEvents.OnRemoteBranchListUpdated.WaitOne(TimeSpan.FromSeconds(1));
391+
repositoryManagerEvents.OnLocalBranchListUpdated.WaitOne(TimeSpan.FromSeconds(1));
388392

389393
repositoryManagerListener.Received().OnIsBusyChanged(Args.Bool);
390394
repositoryManagerListener.DidNotReceive().OnStatusUpdated(Args.GitStatus);

0 commit comments

Comments
 (0)