Skip to content

Repeat test until callback invoked on IO thread.#669

Merged
olim7t merged 1 commit into
2.0from
AsyncQueryTestFix
May 11, 2016
Merged

Repeat test until callback invoked on IO thread.#669
olim7t merged 1 commit into
2.0from
AsyncQueryTestFix

Conversation

@tolbertam
Copy link
Copy Markdown
Contributor

Very rarely the callback in should_fail_when_synchronous_call_on_io_thread could be registered after the session.executeAsync future completes, causing it to be executed on the same thread. In this case we simply retry until we know the callback is executed on an io thread. If this doesn't happen in 1000 attempts, the test fails.

@olim7t olim7t merged commit b430b15 into 2.0 May 11, 2016
@olim7t olim7t deleted the AsyncQueryTestFix branch May 11, 2016 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants