修复数据库测试问题
This commit is contained in:
1 parent
d0d8096663
commit
d833ce9f34
2 files changed
+14
-1
No files matched your search
+12
-1
@@ -14,7 +14,18 @@ monitor_curl() {
|
||||
}
|
||||
|
||||
request() {
|
||||
monitor_curl --fail --location --silent --show-error "$@"
|
||||
response_file=$(mktemp /tmp/nodeflare-response.XXXXXX)
|
||||
if monitor_curl --fail-with-body --location --silent --show-error \
|
||||
--output "$response_file" "$@"; then
|
||||
cat "$response_file"
|
||||
rm -f -- "$response_file"
|
||||
else
|
||||
request_status=$?
|
||||
cat "$response_file" >&2
|
||||
printf '\n' >&2
|
||||
rm -f -- "$response_file"
|
||||
return "$request_status"
|
||||
fi
|
||||
}
|
||||
|
||||
step() {
|
||||
|
||||
Reference in new issue
Block a user