Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction error #2594

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public ability_to_use_an_existing_connection_and_transaction(DefaultStoreFixture

protected override Task fixtureSetup()
{
return Task.CompletedTask;
return theStore.BulkInsertDocumentsAsync(targets);
}

Expand Down Expand Up @@ -107,7 +108,7 @@ public void enlist_in_transaction_scope()
using (var session = theStore.QuerySession())
{
//See https://github.com/npgsql/npgsql/issues/1483 - Npgsql by default is enlisting
session.Query<Target>().Count().ShouldBe(102);
session.Query<Target>().Count().ShouldBe(2);
}

scope.Complete();
Expand Down Expand Up @@ -136,7 +137,7 @@ public void enlist_in_transaction_scope_by_transaction()
using (var session = theStore.QuerySession())
{
//See https://github.com/npgsql/npgsql/issues/1483 - Npgsql by default is enlisting
session.Query<Target>().Count().ShouldBe(102);
session.Query<Target>().Count().ShouldBe(2);
}

scope.Complete();
Expand All @@ -145,7 +146,7 @@ public void enlist_in_transaction_scope_by_transaction()
// should be 2 additional targets
using (var session = theStore.QuerySession())
{
session.Query<Target>().Count().ShouldBe(102);
session.Query<Target>().Count().ShouldBe(2);
}
}

Expand Down