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));
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user