Skip to content

Fix test_rendering flaky pager test#1152

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

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

Conversation

@tompng
Copy link
Copy Markdown
Member

@tompng tompng commented Dec 26, 2025

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant