Retry sing-box downloads in runtime builds
This commit is contained in:
@@ -170,3 +170,12 @@ test('every shipped build defaults to sing-box 1.13.18', () => {
|
||||
assert.match(fs.readFileSync(path.join(root, file), 'utf8'), /SINGBOX_VERSION[^\n]*1\.13\.18/);
|
||||
}
|
||||
});
|
||||
|
||||
test('runtime builds retry transient sing-box release download failures', () => {
|
||||
for (const file of ['Dockerfile', 'Dockerfile.client', 'Dockerfile.runtime-base']) {
|
||||
assert.match(
|
||||
fs.readFileSync(path.join(root, file), 'utf8'),
|
||||
/curl --retry 5 --retry-all-errors --retry-delay 2 -fsSL .*SagerNet\/sing-box/,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user