Skip to content

Commit

Permalink
Fix saving the flapper name when one was found
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbkr committed Nov 5, 2022
1 parent 13e5cc6 commit 5ccac1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/CITestSetManager.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,16 @@ method !check-for-flappers() {
$_.flapper.defined
}) {
# It's not a flapper re-test.
if $!flapper-detector.is-flapper($test.log) {
if $!flapper-detector.is-flapper($test.log) -> $flapper-name {
my $ts = $test.platform-test-set.test-set;
for $!test-set-listeners.keys {
$_.re-test-test-set($ts)
}

$ts.status = DB::WAITING_FOR_TEST_RESULTS;
$ts.^save;

$test.flapper = $flapper-name;
}

$test.flapper-checked = True;
Expand Down

0 comments on commit 5ccac1b

Please sign in to comment.