Fix bug where failed benchmark is not being added to test suite

pull/5368/head
hunteraraujo 2023-09-27 17:26:19 -07:00
parent 5496a82043
commit 39e4b7e03f
1 changed files with 1 additions and 1 deletions

View File

@ -233,13 +233,13 @@ class SkillTreeViewModel extends ChangeNotifier {
// await Future.delayed(Duration(seconds: 2));
notifyListeners();
testSuite.tests.add(task);
// If successStatus is false, break out of the loop
if (!successStatus) {
print(
"Benchmark for node ${node.id} failed. Stopping all benchmarks.");
break;
}
testSuite.tests.add(task);
}
// Add the TestSuite to the TaskViewModel