mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 08:47:42 +08:00
t0062: fix indentation
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
@ -39,29 +39,29 @@ test_client_must_fail() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test_client_suite() {
|
test_client_suite() {
|
||||||
state="$1"
|
state="$1"
|
||||||
cfg_success="$2"
|
cfg_success="$2"
|
||||||
diff_success="$3"
|
diff_success="$3"
|
||||||
api_fromcfg="$4"
|
api_fromcfg="$4"
|
||||||
api_different="$5"
|
api_different="$5"
|
||||||
|
|
||||||
# must always work
|
# must always work
|
||||||
test_client
|
test_client
|
||||||
|
|
||||||
# must always err
|
# must always err
|
||||||
test_client_must_fail --api "$api_unreachable"
|
test_client_must_fail --api "$api_unreachable"
|
||||||
|
|
||||||
if [ "$cfg_success" = true ]; then
|
if [ "$cfg_success" = true ]; then
|
||||||
test_client --api "$api_fromcfg"
|
test_client --api "$api_fromcfg"
|
||||||
else
|
else
|
||||||
test_client_must_fail --api "$api_fromcfg"
|
test_client_must_fail --api "$api_fromcfg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$diff_success" = true ]; then
|
if [ "$diff_success" = true ]; then
|
||||||
test_client --api "$api_different"
|
test_client --api "$api_different"
|
||||||
else
|
else
|
||||||
test_client_must_fail --api "$api_different"
|
test_client_must_fail --api "$api_different"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# first, test things without daemon, without /api file
|
# first, test things without daemon, without /api file
|
||||||
|
Reference in New Issue
Block a user