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

Commit c1e05c1

Browse files
Removing this bleed events functionality
1 parent 3c16139 commit c1e05c1

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/tests/IntegrationTests/BaseGitEnvironmentTest.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ protected async Task<IEnvironment> Initialize(NPath repoPath, NPath environmentP
2626

2727
Platform = new Platform(Environment);
2828

29-
Logger.Trace("Bleeding Events");
30-
BleedEvents(TestRepoMasterCleanUnsynchronized);
31-
BleedEvents(TestRepoMasterCleanUnsynchronizedRussianLanguage);
32-
BleedEvents(TestRepoMasterCleanSynchronized);
33-
BleedEvents(TestRepoMasterDirtyUnsynchronized);
34-
BleedEvents(TestRepoMasterTwoRemotes);
35-
Logger.Trace("Bled Events");
36-
3729
GitEnvironment = Platform.GitEnvironment;
3830
ProcessManager = new ProcessManager(Environment, GitEnvironment, TaskManager.Token);
3931

@@ -74,20 +66,6 @@ protected async Task<IEnvironment> Initialize(NPath repoPath, NPath environmentP
7466
return Environment;
7567
}
7668

77-
private void BleedEvents(NPath path)
78-
{
79-
using (var repositoryWatcher = new RepositoryWatcher(Platform, new RepositoryPathConfiguration(path), CancellationToken.None))
80-
{
81-
repositoryWatcher.Initialize();
82-
repositoryWatcher.Start();
83-
while (repositoryWatcher.CheckAndProcessEvents() != 0)
84-
{
85-
Thread.Sleep(TimeSpan.FromSeconds(2));
86-
}
87-
repositoryWatcher.Stop();
88-
}
89-
}
90-
9169
public override void OnTearDown()
9270
{
9371
RepositoryManager?.Stop();

0 commit comments

Comments
 (0)