Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/9.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Jul 4, 2019
2 parents 32b2947 + 2b079c6 commit aca96df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 124 deletions.

This file was deleted.

10 changes: 5 additions & 5 deletions Source/CakeMail.RestClient.IntegrationTests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,26 @@ static async Task<int> Main()

// Execute the async tests in parallel (with max degree of parallelism)
var results = await integrationTests.ForEachAsync(
async integrationTestType =>
async testType =>
{
var log = new StringWriter();

try
{
var integrationTest = (IIntegrationTest)Activator.CreateInstance(integrationTestType);
var integrationTest = (IIntegrationTest)Activator.CreateInstance(testType);
await integrationTest.Execute(client, userKey, clientId, log, source.Token).ConfigureAwait(false);
return (TestName: integrationTestType.Name, ResultCode: ResultCodes.Success, Message: string.Empty);
return (TestName: testType.Name, ResultCode: ResultCodes.Success, Message: string.Empty);
}
catch (OperationCanceledException)
{
await log.WriteLineAsync($"-----> TASK CANCELLED").ConfigureAwait(false);
return (TestName: integrationTestType.Name, ResultCode: ResultCodes.Cancelled, Message: "Task cancelled");
return (TestName: testType.Name, ResultCode: ResultCodes.Cancelled, Message: "Task cancelled");
}
catch (Exception e)
{
var exceptionMessage = e.GetBaseException().Message;
await log.WriteLineAsync($"-----> AN EXCEPTION OCCURRED: {exceptionMessage}").ConfigureAwait(false);
return (TestName: integrationTestType.Name, ResultCode: ResultCodes.Exception, Message: exceptionMessage);
return (TestName: testType.Name, ResultCode: ResultCodes.Exception, Message: exceptionMessage);
}
finally
{
Expand Down

0 comments on commit aca96df

Please sign in to comment.