Skip to content

Wait a second more in tests to help slower architectures#155

Open
hrw wants to merge 2 commits into
m6w6:masterfrom
hrw:master
Open

Wait a second more in tests to help slower architectures#155
hrw wants to merge 2 commits into
m6w6:masterfrom
hrw:master

Conversation

@hrw

@hrw hrw commented Jun 21, 2026

Copy link
Copy Markdown

We build this project for RISC-V 64-bit architecture port of Fedora and build was always failing in tests. First we solved it by dropping one test, and then @yaneti came with the idea of changing test a bit to make it pass.

Is it the right solution? We are not sure.

Is it the working solution? For us, yes.

@remicollet asked us to submit it upstream so we did.

yaneti added 2 commits June 21, 2026 18:09
This could be completely misguided, but it fixes the tests on riscv64
and builds in Fedora koji scratch build.

On some slower (riscv64, s390x) architectures there is race window
between creating a test server socket and a test client trying to
connect to it before its actually ready to accept connections.

This is inherent in the current way tests are set up. Try adding an
additional 1 second wait on the first select to workaround without
re-architecting the thing.

Signed-off-by: Yanko Kaneti <yaneti@declera.com>
Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
stream_select() takes three arrays as arguments but $E was given twice.

Signed-off-by: Yanko Kaneti <yaneti@declera.com>
Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
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.

2 participants