Skip to content

Commit

Permalink
Revert "ci_status_test: Reverse expected output"
Browse files Browse the repository at this point in the history
Jobs are listed in the original order again, so stop expecting
reversed output.

This reverts commit cacff90.
  • Loading branch information
fmuellner committed Dec 11, 2020
1 parent f055edf commit ee7fda4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions cmd/ci_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@ func Test_ciStatus(t *testing.T) {
}
out := string(b)
assert.Contains(t, out, `Stage: Name - Status
deploy: deploy10 - success
deploy: deploy9 - success
deploy: deploy8 - success
deploy: deploy7 - success
deploy: deploy6 - success
deploy: deploy5 - success
deploy: deploy5:really_a_long_name_for - success
deploy: deploy4 - success
deploy: deploy3:no_sufix:deploy - success
deploy: deploy2 - manual
deploy: deploy1 - success
test: test3 - success
test: test2:no_suffix:test - success
test: test2:really_a_long_name_for - success
test: test2 - success
test: test1 - success
build: build2:fails - failed
build: build1 - success
build: build2 - success
build: build1 - success`)
build: build2:fails - failed
test: test1 - success
test: test2 - success
test: test2:really_a_long_name_for - success
test: test2:no_suffix:test - success
test: test3 - success
deploy: deploy1 - success
deploy: deploy2 - manual
deploy: deploy3:no_sufix:deploy - success
deploy: deploy4 - success
deploy: deploy5:really_a_long_name_for - success
deploy: deploy5 - success
deploy: deploy6 - success
deploy: deploy7 - success
deploy: deploy8 - success
deploy: deploy9 - success
deploy: deploy10 - success`)

assert.Contains(t, out, "Pipeline Status: success")
}
2 changes: 1 addition & 1 deletion cmd/ci_trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Test_ciTrace(t *testing.T) {
desc: "noargs",
args: []string{},
assertContains: func(t *testing.T, out string) {
assert.Contains(t, out, "Showing logs for build1")
assert.Contains(t, out, "Showing logs for deploy10")
assert.Contains(t, out, "Checking out 09b519cb as ci_test_pipeline...")
assert.Contains(t, out, "For example you might run an update here or install a build dependency")
assert.Contains(t, out, "$ echo \"Or perhaps you might print out some debugging details\"")
Expand Down

0 comments on commit ee7fda4

Please sign in to comment.