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

Commit b68befc

Browse files
Removing ignores of TimeSensitive tests
1 parent d97e7ff commit b68befc

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ test:
5656
categories:
5757
except:
5858
- DoNotRunOnAppVeyor
59-
- TimeSensitive
6059
artifacts:
6160
- path: unity\PackageProject
6261
type: zip

src/tests/IntegrationTests/BaseGitEnvironmentTest.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ protected async Task<IEnvironment> Initialize(NPath repoPath, NPath environmentP
2525
Environment.GitExecutablePath = gitSetup.GitExecutablePath;
2626

2727
Platform = new Platform(Environment);
28+
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+
2837
GitEnvironment = Platform.GitEnvironment;
2938
ProcessManager = new ProcessManager(Environment, GitEnvironment, TaskManager.Token);
3039

@@ -65,6 +74,20 @@ protected async Task<IEnvironment> Initialize(NPath repoPath, NPath environmentP
6574
return Environment;
6675
}
6776

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+
6891
public override void OnTearDown()
6992
{
7093
RepositoryManager?.Stop();

src/tests/IntegrationTests/Events/RepositoryWatcherTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
namespace IntegrationTests
1111
{
12-
[TestFixture, Category("TimeSensitive")]
12+
[TestFixture]
1313
class RepositoryWatcherTests : BaseGitEnvironmentTest
1414
{
15-
[Test, Category("TimeSensitive")]
15+
[Test]
1616
public async Task ShouldDetectFileChangesAndCommit()
1717
{
1818
await Initialize(TestRepoMasterCleanSynchronized, initializeRepository: false);

src/tests/IntegrationTests/GitClientTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace IntegrationTests
88
{
9-
[TestFixture/*, Category("TimeSensitive")*/]
9+
[TestFixture]
1010
class GitClientTests : BaseGitEnvironmentTest
1111
{
1212
[Test]

0 commit comments

Comments
 (0)