Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shinto C V
Pod backend
Commits
d6107c9b
Unverified
Commit
d6107c9b
authored
4 years ago
by
Vasili Novikov
Browse files
Options
Download
Email Patches
Plain Diff
Add timeout to curl test
parent
1fdba6cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_curl.sh
+2
-2
tests/test_curl.sh
with
2 additions
and
2 deletions
+2
-2
tests/test_curl.sh
+
2
-
2
View file @
d6107c9b
...
...
@@ -6,12 +6,12 @@ set -euETo pipefail
#### Start Pod
./examples/run_development.sh
--port
=
4956 &
pid
=
$!
trap
'kill $pid'
EXIT
for
attempt
in
{
1..30
}
;
do
#### Try to get a successful response to /version
if
curl localhost:4956/version 1>/dev/null 2>&1
;
then
if
timeout
1s
curl localhost:4956/version 1>/dev/null 2>&1
;
then
echo
"Got a successful response, exiting"
kill
$pid
exit
0
else
sleep
1s
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets