Skip to content

Fix test_rendering flaky pager test#1152

Merged
tompng merged 1 commit into
ruby:masterfrom
tompng:fix_flaky_paging_test
Dec 29, 2025
Merged

Fix test_rendering flaky pager test#1152
tompng merged 1 commit into
ruby:masterfrom
tompng:fix_flaky_paging_test

Conversation

@tompng

@tompng tompng commented Dec 26, 2025

Copy link
Copy Markdown
Member

Fixes this random failing test: https://github.com/ruby/irb/actions/runs/20289200418/job/58269730542

Looks like IRB evaluates this two lines at the same time.

'a' * 80 * 11
'foo' + 'bar'

We need to first make IRB evaluate 'a' * 80 * 11, wait for pager to launch (with assert_screen(/a{80}/)), and then input the second line.

@tompng tompng merged commit e462fa2 into ruby:master Dec 29, 2025
33 checks passed
@tompng tompng deleted the fix_flaky_paging_test branch December 29, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant