Skip to content

Commit

Permalink
fix: allow for trace file to be fully written (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassy authored Apr 2, 2024
1 parent a0dc4d3 commit 578c74a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/artillery/lib/platform/cloud/cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class ArtilleryCloudPlugin {
);
}

await this.waitOnUnprocessedLogs(20 * 1000); //just waiting for ee is not enough, as the api call takes time
await this.waitOnUnprocessedLogs(30 * 1000); //just waiting for ee is not enough, as the api call takes time

if (isInteractiveUse) {
await this._event('testrun:end', {
Expand Down Expand Up @@ -248,7 +248,9 @@ class ArtilleryCloudPlugin {

watcher.on('add', (fp) => {
if (path.basename(fp).startsWith('trace-') && fp.endsWith('.zip')) {
this._uploadAsset(fp);
setTimeout(() => {
this._uploadAsset(fp);
}, 10 * 1000);
}
});
}
Expand Down

0 comments on commit 578c74a

Please sign in to comment.