Commit 98efee3
Assert webauthn request auth instead of last request
test_with_webauthn_enabled_failure checked the Authorization header on
@stub_fetcher.last_request, but the webauthn flow runs a real polling
thread that issues its own request concurrently. On Rubies without a GIL
the poll request can land last, so last_request was not the
webauthn_verification request and the assertion saw a nil header.
Look up the webauthn_verification request explicitly and assert on its
Authorization header, which the main thread always records. This is the
invariant the test means to check and it is no longer order dependent, so
the TruffleRuby pend that papered over the same race can go too.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7bc41a2 commit 98efee3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | 402 | | |
404 | 403 | | |
405 | 404 | | |
| |||
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
420 | | - | |
| 419 | + | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
0 commit comments