[tests] fix unit tests with ESRepeatNElseArchive

3 jobs for master in 9 minutes and 58 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #14140
build

00:03:32

 
  Unit Tests
passed #14141
unit-tests

00:03:13

 
  Integration Tests
failed #14142
integration-tests

00:03:13

 
Name Stage Failure
failed
integration-tests Integration Tests
      can handle a job with timeout (archive strategy):                      OK (1.02s)
can handle a job with timeout (delete strategy): OK (1.02s)
can handle a job with timeout (repeat N times, then archive strategy): OK (2.02s)
can process two jobs: OK (0.02s)
after job with error, continue with another one: OK (0.02s)

4 out of 22 tests failed (25.39s)
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1