Skip to content

Commit f6cb81d

Browse files
committed
Trivial - rename compiler flag
1 parent e62733f commit f6cb81d

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

Tests/CSF.Screenplay.Selenium.Tests/Properties/LevelOfParallelismAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
* test runs, with many duplicate tests.
44
*/
55

6-
#if NO_NUNIT_PARALLELISM
6+
#if BROWSER_STACK_ENABLED
77
[assembly:LevelOfParallelism(1)]
88
#endif

Tests/CSF.Screenplay.Selenium.Tests/TestWebappSetupAndTeardown.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public async Task StartWebAppAsync()
1919
webAppProcess = Process.Start("dotnet", $"run --project {GetPathToWebappProject()}");
2020
await WaitForWebAppToBeAvailableAsync();
2121

22+
#if BROWSER_STACK_ENABLED
23+
// If running with BrowserStack then delay because I suspect a race condition
2224
await Task.Delay(TimeSpan.FromSeconds(5));
25+
#endif
2326
}
2427

2528
[OneTimeTearDown]

Tests/CSF.Screenplay.Selenium.Tests/Tools/BrowserStack.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<DefineConstants>$(DefineConstants);NO_NUNIT_PARALLELISM</DefineConstants>
3+
<DefineConstants>$(DefineConstants);BROWSER_STACK_ENABLED</DefineConstants>
44
</PropertyGroup>
55

66
<ItemGroup>

0 commit comments

Comments
 (0)