Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 500ms overhead to parallel execution tests. #962

Merged
merged 1 commit into from
Sep 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/E2ETests/Smoke.E2E.Tests/ParallelExecutionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ParallelExecutionTests : CLITestBase
private const string MethodParallelTestAssembly = "ParallelMethodsTestProject.dll";
private const string DoNotParallelizeTestAssembly = "DoNotParallelizeTestProject.dll";
private const int TestMethodWaitTimeInMS = 1000;
private const int OverheadTimeInMS = 2500;
private const int OverheadTimeInMS = 3000;

[TestMethod]
public void AllMethodsShouldRunInParallel()
Expand Down Expand Up @@ -76,7 +76,7 @@ public void NothingShouldRunInParallel()
this.InvokeVsTestForExecution(new string[] { DoNotParallelizeTestAssembly }, RunSetting);

// DoNotParallelize set for Assemblly
// There are a total of 2 classes - C1 (3 tests), C2(3 tests) with a sleep of TestMethodWaitTimeInMS.
// There are a total of 2 classes - C1 (3 tests), C2 (3 tests) with a sleep of TestMethodWaitTimeInMS.
// So this should not exceed 5 * TestMethodWaitTimeInMS seconds + 2.5 seconds overhead.
this.ValidateTestRunTime((5 * TestMethodWaitTimeInMS) + OverheadTimeInMS);

Expand Down