Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

test: fix flaky integration test#45

Merged
olavloite merged 1 commit into
masterfrom
issue-41
Jan 24, 2020
Merged

test: fix flaky integration test#45
olavloite merged 1 commit into
masterfrom
issue-41

Conversation

@olavloite

Copy link
Copy Markdown
Collaborator

The ITClosedSessionTest could cause a flaky failure because it deletes sessions on the server and then repeatedly executes queries on the session until it returns a NOT_FOUND error. The actual deletion could however happen exactly at the moment that the test query was executed, which will cause Cloud Spanner to return a different error message than the standard 'Session not found' error message.

Fixes #41

The ITClosedSessionTest could cause a flaky failure because it
deletes sessions on the server and then repeatedly executes queries
on the session until it returns a NOT_FOUND error. The actual deletion
could however happen exactly at the moment that the test query was
executed, which will cause Cloud Spanner to return a different error
message than the standard 'Session not found' error message.

Fixes #41
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 23, 2020

@mbril mbril left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ITClosedSessionTest.testReadWriteTransactionNoRecreation is flaky

3 participants