mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
nixosTests.syncthing-many-devices: reduce curl's #retries
This commit is contained in:
@@ -138,7 +138,7 @@ let
|
||||
(printf "X-API-Key: "; cat "$RUNTIME_DIRECTORY/api_key") >"$RUNTIME_DIRECTORY/headers"
|
||||
|
||||
${pkgs.curl}/bin/curl -sSLk -H "@$RUNTIME_DIRECTORY/headers" \
|
||||
--retry 1000 --retry-delay 1 --retry-all-errors \
|
||||
--retry 5 --retry-delay 1 --retry-all-errors \
|
||||
"$@"
|
||||
}
|
||||
curl -d ${lib.escapeShellArg (builtins.toJSON { deviceID = IDsToDelete.device; })} \
|
||||
|
||||
Reference in New Issue
Block a user