Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Ydb.Sdk/tests/Pool/SessionPoolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public void GetSession_WhenRaceConditionThenRelease_CreateSuccessSessionIsCalled
}

[Fact]
public async Task GetSession_WhenCreateSessionReturnUnavailable_ExpectedStatusAndReleaseSessionInPool()
public void GetSession_WhenCreateSessionReturnUnavailable_ExpectedStatusAndReleaseSessionInPool()
{
_testSessionPool.CreatedStatus = Status
.FromProto(StatusIds.Types.StatusCode.Unavailable, new RepeatedField<IssueMessage>());

var e = await Assert.ThrowsAsync<StatusUnsuccessfulException>(async () => await _testSessionPool.GetSession());
var e = Assert.Throws<StatusUnsuccessfulException>(() => _testSessionPool.GetSession().Result);

Assert.Equal(StatusCode.Unavailable, e.Status.StatusCode);

Expand Down
Loading