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

This commit is contained in:
hunteraraujo
2023-09-27 17:26:19 -07:00
parent 5496a82043
commit 39e4b7e03f

View File

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