action #55457
closed
flaky test: t/api/11-bugs.t
Added by okurz over 4 years ago.
Updated over 4 years ago.
Category:
Regressions/Crashes
Description
Observation¶
See https://travis-ci.org/os-autoinst/openQA/jobs/571252106#L1021 , failed 1/20 test runs:
# Failed test 'All reported bugs'
# at ./t/api/11-bugs.t line 90.
# got: '2'
# expected: '3'
# Looks like you failed 1 test of 31.
./t/api/11-bugs.t .........................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/31 subtests
- Copied to action #55460: flaky test: t/33-developer_mode.t - not ok 308 - Wait for (?^:\"set_pause_on_screen_mismatch\":\"assert_screen\") timed out added
- Related to action #37638: Flaky fullstack test: 'Test 3 is scheduled' at t/full-stack.t added
I can reproduce this by doing a short sleep here:
select undef, undef, undef, 0.2;
$t->get_ok('/api/v1/bugs?created_since=500');
I suggest to change this line
t_created => time2str('%Y-%m-%d %H:%M:%S', time - 500, 'UTC')
to
t_created => time2str('%Y-%m-%d %H:%M:%S', time - 490, 'UTC')
- Assignee set to tinita
- Difficulty set to easy
- % Done changed from 0 to 80
- Status changed from New to In Progress
- % Done changed from 80 to 100
- Status changed from In Progress to Resolved
Also available in: Atom
PDF