File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ public void GetSession_WhenRaceConditionThenRelease_CreateSuccessSessionIsCalled
2121 }
2222
2323 [ Fact ]
24- public async Task GetSession_WhenCreateSessionReturnUnavailable_ExpectedStatusAndReleaseSessionInPool ( )
24+ public void GetSession_WhenCreateSessionReturnUnavailable_ExpectedStatusAndReleaseSessionInPool ( )
2525 {
2626 _testSessionPool . CreatedStatus = Status
2727 . FromProto ( StatusIds . Types . StatusCode . Unavailable , new RepeatedField < IssueMessage > ( ) ) ;
2828
29- var e = await Assert . ThrowsAsync < StatusUnsuccessfulException > ( async ( ) => await _testSessionPool . GetSession ( ) ) ;
29+ var e = Assert . Throws < StatusUnsuccessfulException > ( ( ) => _testSessionPool . GetSession ( ) . Result ) ;
3030
3131 Assert . Equal ( StatusCode . Unavailable , e . Status . StatusCode ) ;
3232
You can’t perform that action at this time.
0 commit comments