mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-13 17:32:11 +00:00
fix: sleep for 2 seconds to test for race case
This commit is contained in:
parent
9167269e47
commit
c3f1958bba
3 changed files with 6 additions and 4 deletions
|
|
@ -36,7 +36,8 @@ try {
|
|||
|
||||
const downloadUploader = (retries) => {
|
||||
const filePath = fs.createWriteStream(filename, {flags: 'w'});
|
||||
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||
https.get(getBaseUrl(platform, uploaderVersion), async (res) => {
|
||||
await new Promise((r) => setTimeout(r, 2000));
|
||||
res.pipe(filePath);
|
||||
});
|
||||
filePath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue