Project

General

Profile

Actions

action #59100

closed

Race condition in os-autoinst/commands.pm

Added by tinita about 5 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Regressions/Crashes
Target version:
-
Start date:
2019-11-05
Due date:
% Done:

0%

Estimated time:

Description

If I put a sleep 3 into the following code, then the t/full-stack.t test is failing.

Mojo::IOLoop->singleton->reactor->io($isotovideo => sub {
        my ($reactor, $writable) = @_;

        my @isotovideo_responses = myjsonrpc::read_json($isotovideo, undef, 1);

        sleep 3; # <-------------------------------------------

...
})->watch($isotovideo, 1, 0);    # watch only readable (and not writable)

The set_pause_at_test is sent via myjsonrpc::send_json(), but never read via read_json().

https://github.com/os-autoinst/os-autoinst/blob/master/commands.pm#L325-L339


Related issues 1 (0 open1 closed)

Related to openQA Project (public) - action #59043: Fix unstable/flaky full-stack test, i.e. remove sleep, and ui testsResolvedokurz2019-11-04

Actions
Actions

Also available in: Atom PDF