Skip to content

Fix prompt cache flaky test#1130

Merged
tompng merged 1 commit into
ruby:masterfrom
tompng:fix_prompt_cache_test
Oct 25, 2025
Merged

Fix prompt cache flaky test#1130
tompng merged 1 commit into
ruby:masterfrom
tompng:fix_prompt_cache_test

Conversation

@tompng

@tompng tompng commented Oct 25, 2025

Copy link
Copy Markdown
Member

"#{rand}" might include "e-" which doesn't match to [\d.]+

Fix this failed flaky test

Failure: test_prompt_part_cached(TestIRB::ContextTest):
  </\A\[(to_s[\d.]+) (inspect[\d.]+) \1 \2\]>\z/> was expected to be =~
  <"[to_s0.34254925528742264 inspect4.070655031584991e-05 to_s0.34254925528742264 inspect4.070655031584991e-05]>">.
"#{rand}" might include "e-" which doesn't match to /[\d.]+/
@tompng tompng merged commit 50db8f8 into ruby:master Oct 25, 2025
33 checks passed
@tompng tompng deleted the fix_prompt_cache_test branch October 25, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant