Skip to content

Commit

Permalink
fix .net test CTR
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentyn Kahamlyk authored and Valentyn Kahamlyk committed Dec 6, 2023
1 parent 84d6247 commit 89d4379
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public async Task ShouldSupportFurtherTraversalsAfterOneWasCancelled()
public async Task ShouldThrowExceptionOnCommitWhenGraphNotSupportTx()
{
var connection = _connectionFactory.CreateRemoteConnection();
var g = AnonymousTraversalSource.Traversal().WithRemote(connection);
var g = AnonymousTraversalSource.Traversal().With(connection);
var tx = g.Tx();
var exception = await Assert.ThrowsAsync<ResponseException>(async () => await tx.CommitAsync());
Assert.Equal("ServerError: Graph does not support transactions", exception.Message);
Expand All @@ -286,7 +286,7 @@ public async Task ShouldThrowExceptionOnCommitWhenGraphNotSupportTx()
public async Task ShouldThrowExceptionOnRollbackWhenGraphNotSupportTx()
{
var connection = _connectionFactory.CreateRemoteConnection();
var g = AnonymousTraversalSource.Traversal().WithRemote(connection);
var g = AnonymousTraversalSource.Traversal().With(connection);
var tx = g.Tx();
var exception = await Assert.ThrowsAsync<ResponseException>(async () => await tx.RollbackAsync());
Assert.Equal("ServerError: Graph does not support transactions", exception.Message);
Expand Down

0 comments on commit 89d4379

Please sign in to comment.