mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
Fix bug where failed benchmark is not being added to test suite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user