mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-11 05:27:24 +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
5
dist/index.js
vendored
5
dist/index.js
vendored
|
|
@ -24605,9 +24605,10 @@ try {
|
||||||
};
|
};
|
||||||
const downloadUploader = (retries) => {
|
const downloadUploader = (retries) => {
|
||||||
const filePath = external_fs_.createWriteStream(filename, { flags: 'w' });
|
const filePath = external_fs_.createWriteStream(filename, { flags: 'w' });
|
||||||
external_https_.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
external_https_.get(getBaseUrl(platform, uploaderVersion), (res) => src_awaiter(void 0, void 0, void 0, function* () {
|
||||||
|
yield new Promise((r) => setTimeout(r, 2000));
|
||||||
res.pipe(filePath);
|
res.pipe(filePath);
|
||||||
});
|
}));
|
||||||
filePath
|
filePath
|
||||||
.on('error', (err) => {
|
.on('error', (err) => {
|
||||||
const errMessage = `${err.message}\n${console.trace()}`;
|
const errMessage = `${err.message}\n${console.trace()}`;
|
||||||
|
|
|
||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -36,7 +36,8 @@ try {
|
||||||
|
|
||||||
const downloadUploader = (retries) => {
|
const downloadUploader = (retries) => {
|
||||||
const filePath = fs.createWriteStream(filename, {flags: 'w'});
|
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);
|
res.pipe(filePath);
|
||||||
});
|
});
|
||||||
filePath
|
filePath
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue