From b6c03fe1a284facd1899fe27853590b87b2f8321 Mon Sep 17 00:00:00 2001 From: lyyyuna Date: Mon, 21 Sep 2020 15:22:46 +0800 Subject: [PATCH] fix test case --- tests/remove.bats | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/remove.bats b/tests/remove.bats index e03f6f4..2e3d88b 100755 --- a/tests/remove.bats +++ b/tests/remove.bats @@ -49,14 +49,19 @@ teardown_file() { profile_pid=$! run goc list --center=http://127.0.0.1:60001; - info remove1 output: $output + info remove1_1 output: $output [ "$status" -eq 0 ] [[ "$output" =~ "simple-project" ]] - run gocc remove --address="simple-project" --debug --debugcisyncfile ci-sync.bak; - info remove1 output: $output + run gocc remove --center=http://127.0.0.1:60001 --service="simple-project" --debug --debugcisyncfile ci-sync.bak; + info remove1_2 output: $output [ "$status" -eq 0 ] - [ "$output" = "" ] + [[ "$output" =~ "removed from the center" ]] + + run goc list --center=http://127.0.0.1:60001; + info remove1_3 output: $output + [ "$status" -eq 0 ] + [ "$output" = "{}" ] wait $profile_pid }