Skip to content

Commit

Permalink
Merge pull request #3 from mayankbansal018/1187_add_support_for_xpat_…
Browse files Browse the repository at this point in the history
…vstest_console_in_translationlayer

Fix Azure pipeline
  • Loading branch information
mayankbansal018 authored Jan 24, 2019
2 parents ff1b4bd + be99176 commit cda8bf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

jobs:
- job: Windows
timeoutInMinutes: 120
pool:
vmImage: 'vs2017-win2016'
variables:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,17 @@ public void RunTestsShouldThrowOnStackOverflowException(RunnerInfo runnerInfo)
}

// Assert
Assert.AreEqual(errorMessage, this.runEventHandler.LogMessage);

// Not happy with this check, but have seen this behaviour on some machines.
// What this essentially means, that atleast run was aborted.
if (runnerInfo.RunnerFramework.StartsWith("netcoreapp"))
{
Assert.IsTrue(errorMessage.StartsWith(this.runEventHandler.LogMessage));
}
else
{
Assert.AreEqual(errorMessage, this.runEventHandler.LogMessage);
}
}

[TestMethod]
Expand Down

0 comments on commit cda8bf9

Please sign in to comment.