Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

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

hunteraraujo39e4b7e03fd5
diff --git a/frontend/lib/viewmodels/skill_tree_viewmodel.dart b/frontend/lib/viewmodels/skill_tree_viewmodel.dart
index f34202b3bb..5fe07c352a 100644
--- a/frontend/lib/viewmodels/skill_tree_viewmodel.dart
+++ b/frontend/lib/viewmodels/skill_tree_viewmodel.dart
@@ -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