Skip to content

Ocassional 02_sleep_system test fail #92

Description

@lemrouch

I got failure of 02_sleep_system test sometimes:

#   Failed test 'Daemon not running.'
#   at t/02_sleep_system.t line 38.
#                   'My Daemon                                                     [Running]'
#     doesn't match '(?^:\[Not Running\])'
#   Failed test 'Exit Status = 3'
#   at t/02_sleep_system.t line 39.
# Looks like you failed 2 tests of 18.
t/02_sleep_system.t ............... 
Dubious, test returned 2 (wstat 512, 0x200)

From what I can see in code
t/bin/02_sleep_system.pl is supposed to sleep for 10 seconds and die and
t/02_sleep_system.t starts the process, sleeps for 10 seconds as well and checks if the process died already.
This looks like a pure race to me and is likely to fail on system under load.
If I'm right there should be longer sleep in test, should be not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions