Skip to content

Commit

Permalink
fix broken test to actually include the error!
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell committed Sep 8, 2016
1 parent d506c17 commit d03f826
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dapper.Tests/Tests.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -777,12 +777,10 @@ public async Task Issue563_QueryAsyncShouldThrowException()
{
try
{
var data = (await connection.QueryAsync<int>("select 1 union all select 2")).ToList();
var data = (await connection.QueryAsync<int>("select 1 union all select 2; RAISERROR('after select', 16, 1);")).ToList();
Assert.Fail();
}catch(SqlException ex)
{
Console.WriteLine(ex.Message);
}
catch (SqlException ex) when (ex.Message == "after select") { }
}
}
}
Expand Down

0 comments on commit d03f826

Please sign in to comment.