Skip to content

Commit 7cadeac

Browse files
authored
Merge pull request docker-archive-public#4150 from otiai10/4149-fix-test-scenario-adjusting-to-latest-spec
Fix test scenario to adjust to latest spec
2 parents a6e6a3b + 437f27d commit 7cadeac

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/integration/core/core-commands.bats

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,16 @@ use_shared_machine
102102
[[ ${output} == *"Host is not running"* ]]
103103
}
104104

105-
106-
@test "$DRIVER: machine should not allow upgrade when stopped" {
105+
@test "$DRIVER: machine should upgrade even when machine is stopped" {
107106
run machine upgrade $NAME
108107
echo ${output}
109-
[[ "$status" -eq 1 ]]
108+
[[ "$status" -eq 0 ]]
110109
}
111110

112-
@test "$DRIVER: start" {
111+
@test "$DRIVER: start should show an error after upgrade" {
113112
run machine start $NAME
114113
echo ${output}
115-
[ "$status" -eq 0 ]
114+
[ "$status" -eq 1 ]
116115
}
117116

118117
@test "$DRIVER: machine should show running after start" {

0 commit comments

Comments
 (0)