-
Notifications
You must be signed in to change notification settings - Fork 143
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
flaky test: NIOSSLIntegrationTest.testNewCallbackCanDelayHandshake #197
Comments
Thoughts on using an let completionExpectation = XCTestExpectation(description: "CompletionPromiseExpectation")
completionPromiseFiredLock.withLock {
XCTAssertFalse(completionPromiseFired)
completionExpectation.fulfill()
}
// Ok, allow the handshake to run.
handshakeCompletePromise!.succeed(.certificateVerified)
let newBuffer = try completionPromise.futureResult.wait()
XCTAssertTrue(completionPromiseFired)
XCTAssertEqual(newBuffer, originalBuffer)
wait(for: [completionExpectation], timeout: 5.0) |
That works, but doesn't really address the flakiness of the test. In practice I mostly don't mind it if a hang results in failure, because in either case we really do have to fix this issue. |
Yeah, I think hangs are a good enough signal too. There's no way we could catch all things that could possibly hang so if we were to start using |
Sure, that all makes sense. I will sideline this and keep an eye out for anything I see that may be the root cause of this issue. Thanks. |
08:57:08 Test Case 'NIOSSLIntegrationTest.testNewCallbackCanDelayHandshake' started at 2020-10-19 07:57:08.018 |
hit again in CI in #293 |
Hit again in CI in #295. |
Hit again in CI on nightly in #299. |
Actually hit repeatedly there, a few times in 5.0 as well. Seems like this is manifesting more under load. I've done some previous glancing at this in the past and was never able to diagnose anything, seems like I may need to do a more thorough investigation. |
Hit again on CI in nightly on #300. |
Hit again in #333 on 5.3 |
And another one on 5.3 in #339: |
Hit on 5.6 in #365 |
we were stuck for 17 minutes in
NIOSSLIntegrationTest.testNewCallbackCanDelayHandshake
:The text was updated successfully, but these errors were encountered: