File tree Expand file tree Collapse file tree
test_runner/src/main/kotlin/ftl/run Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -291,6 +291,8 @@ object TestRunner {
291291
292292 while (true ) {
293293 refreshedMatrix = GcTestMatrix .refresh(matrixId, args)
294+ // Update the matrix file when the matrix is updated
295+ if (matrices.map[matrixId]?.update(refreshedMatrix) == true ) updateMatrixFile(matrices, args)
294296
295297 val firstTestStatus = refreshedMatrix.testExecutions.first()
296298
@@ -333,12 +335,6 @@ object TestRunner {
333335 puts(lastState)
334336 }
335337
336- // Update the matrix file if the matrix has changed.
337- val changed = matrices.map[matrixId]?.update(refreshedMatrix) ? : false
338- if (changed) {
339- updateMatrixFile(matrices, args)
340- }
341-
342338 // GetTestMatrix is not designed to handle many requests per second.
343339 // Sleep 15s to avoid overloading the system.
344340 Utils .sleep(15 )
You can’t perform that action at this time.
0 commit comments