Skip to content

Commit

Permalink
Battle harden AC tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Apr 5, 2020
1 parent 6d2d3ed commit 791c44e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/Acoustics.Test/AnalysisBase/AnalysisCoordinatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void FailsWithInvalidSegment()
});
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Save_Unique_Temp()
{
var states = new[]
Expand Down Expand Up @@ -231,7 +231,7 @@ public void Test_Save_Unique_Temp()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Always, unique: true, temp: this.TestTemp, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Never_Unique_Temp()
{
var states = new[]
Expand Down Expand Up @@ -285,7 +285,7 @@ public void Test_Never_Unique_Temp()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Never, unique: true, temp: this.TestTemp, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Save_Same_Temp()
{
var states = new[]
Expand Down Expand Up @@ -335,7 +335,7 @@ public void Test_Save_Same_Temp()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Always, unique: false, temp: this.TestTemp, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Never_Same_Temp()
{
var states = new[]
Expand Down Expand Up @@ -364,7 +364,7 @@ public void Test_Never_Same_Temp()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Never, unique: false, temp: this.TestTemp, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Save_Unique_Null()
{
var states = new[]
Expand Down Expand Up @@ -421,7 +421,7 @@ public void Test_Save_Unique_Null()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Always, unique: true, temp: null, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Never_Unique_Null()
{
var states = new[]
Expand Down Expand Up @@ -457,7 +457,7 @@ public void Test_Never_Unique_Null()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Never, unique: true, temp: null, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Save_Same_Null()
{
var states = new[]
Expand Down Expand Up @@ -505,7 +505,7 @@ public void Test_Save_Same_Null()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Always, unique: false, temp: null, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Never_Same_Null()
{
var states = new[]
Expand Down Expand Up @@ -534,7 +534,7 @@ public void Test_Never_Same_Null()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Never, unique: false, temp: null, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Save_Unique_Output()
{
var states = new[]
Expand Down Expand Up @@ -611,7 +611,7 @@ public void Test_Save_Unique_Output()
states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Never_Unique_Output()
{
var states = new[]
Expand Down Expand Up @@ -675,7 +675,7 @@ public void Test_Never_Unique_Output()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Never, unique: true, temp: this.AnalysisOutput, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Save_Same_Output()
{
var states = new[]
Expand Down Expand Up @@ -735,7 +735,7 @@ public void Test_Save_Same_Output()
this.TestAnalysisCoordinatorPaths(wav: SaveBehavior.Always, unique: false, temp: this.AnalysisOutput, states: states);
}

[TestMethod]
[RetryTestMethod(3)]
public void Test_Never_Same_Output()
{
var states = new[]
Expand Down Expand Up @@ -882,11 +882,11 @@ private void TestAnalysisCoordinatorPaths(SaveBehavior wav, bool unique, Directo

// complete
// TODO: remove this rubbish and stick in a IoC file system for testing!
dummyAnalyzer.Pump(false);
dummyAnalyzer.Pump();
do
{
task.Wait(1.0.Seconds());
dummyAnalyzer.Pump(false);
dummyAnalyzer.Pump();
}
while (!task.IsCompleted);
task.Wait(1.0.Seconds());
Expand Down

0 comments on commit 791c44e

Please sign in to comment.