Skip to content

Commit 5688c82

Browse files
Fix updateMatrixFile
1 parent df8690b commit 5688c82

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

test_runner/src/main/kotlin/ftl/run/TestRunner.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)