Skip to content

Commit d488209

Browse files
committed
tests: update assertions to match existing style used
Signed-off-by: Tom Watt <tom@buildkite.com>
1 parent 2773c6b commit d488209

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

tests/builder-instances.bats

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ teardown() {
6767
run "$PWD"/hooks/pre-command
6868

6969
assert_success
70-
assert_output \
71-
"~~~ :docker: Creating Builder Instance 'builder-name' with Driver 'docker-container'
72-
~~~ :docker: Using Default Builder 'test' with Driver 'driver'"
70+
assert_output --partial "~~~ :docker: Creating Builder Instance 'builder-name' with Driver 'docker-container'"
71+
assert_output --partial "~~~ :docker: Using Default Builder 'test' with Driver 'driver'"
7372
}
7473

7574
@test "Create Builder Instance with valid Driver but already Exists" {
@@ -85,9 +84,8 @@ teardown() {
8584
run "$PWD"/hooks/pre-command
8685

8786
assert_success
88-
assert_output \
89-
"~~~ :docker: Not Creating Builder Instance 'builder-name' as already exists
90-
~~~ :docker: Using Default Builder 'test' with Driver 'driver'"
87+
assert_output --partial "~~~ :docker: Not Creating Builder Instance 'builder-name' as already exists"
88+
assert_output --partial "~~~ :docker: Using Default Builder 'test' with Driver 'driver'"
9189
}
9290

9391
@test "Use Builder Instance that does not Exist" {

0 commit comments

Comments
 (0)