Skip to content

Commit

Permalink
Merge pull request #3490 from elizaOS/tcm/fix-plugin-test
Browse files Browse the repository at this point in the history
fix: ensure test runner continues execution after failures
  • Loading branch information
tcm390 authored Feb 14, 2025
2 parents 9b7119b + 3e9195e commit 783a23f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/agent/src/plugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ class TestRunner {
this.stats.failed++;
logger.error(`✗ ${test.name}`);
logger.error(error);
throw error;
}
}

Expand All @@ -202,7 +201,9 @@ class TestRunner {
const testSuites = Array.isArray(pluginTests) ? pluginTests : [pluginTests];

for (const suite of testSuites) {
await this.runTestSuite(suite);
if (suite) {
await this.runTestSuite(suite);
}
}
} catch (error) {
logger.error(`Error in plugin ${plugin.name}:`, error);
Expand Down

0 comments on commit 783a23f

Please sign in to comment.