Flaky test: ExplicitAndImplicitTransactionIsRetried_WhenUsingRawSql
skuruppu opened this issue · 1 comments
skuruppu commented
We seem to have a flaky test that fails occassionally.
X Google.Cloud.EntityFrameworkCore.Spanner.Tests.EntityFrameworkMockServerTests.ExplicitAndImplicitTransactionIsRetried_WhenUsingRawSql(disableInternalRetries: True, useExplicitTransaction: False) [18ms]
Error Message:
Assert.Collection() Failure
Collection: [*** "session": "projects/p1/instances/i1/databases/d1/sessions/session-45", "transaction": *** "id": "cHJvamVjdHMvcDEvaW5zdGFuY2VzL2kxL2RhdGFiYXNlcy9kMS9zZXNzaW9ucy9zZXNzaW9uLTQ1L3RyYW5zYWN0aW9ucy80NA==" ***, "sql": "INSERT INTO `Venues` (`Code`, `Active`, `Capacity`, `Name`, `Ratings`)\nVALUES (@p0, @p1, @p2, @p3, @p4)", "params": *** "p0": "C1", "p1": true, "p2": "1000", "p3": "Concert Hall", "p4": null ***, "paramTypes": *** "p0": *** "code": "STRING" ***, "p1": *** "code": "BOOL" ***, "p2": *** "code": "INT64" ***, "p3": *** "code": "STRING" ***, "p4": *** "code": "ARRAY", "arrayElementType": *** "code": "FLOAT64" *** *** ***, "seqno": "1", "queryOptions": *** ***, "requestOptions": *** *** ***]
Expected item count: 2
Actual item count: 1
Stack Trace:
at Google.Cloud.EntityFrameworkCore.Spanner.Tests.EntityFrameworkMockServerTests.ExplicitAndImplicitTransactionIsRetried_WhenUsingRawSql(Boolean disableInternalRetries, Boolean useExplicitTransaction) in /home/runner/work/dotnet-spanner-entity-framework/dotnet-spanner-entity-framework/Google.Cloud.EntityFrameworkCore.Spanner.Tests/EntityFrameworkMockServerTests.cs:line 572
--- End of stack trace from previous location where exception was thrown ---
skuruppu commented