Skip to content

Commit

Permalink
Fix bug where failed benchmark is not being added to test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
hunteraraujo committed Sep 28, 2023
1 parent 5496a82 commit 39e4b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/lib/viewmodels/skill_tree_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39e4b7e

Please sign in to comment.