Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstoick committed Jun 12, 2018
1 parent d111152 commit 585d278
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/pipeline/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ func TestRunPipelineSuccess(t *testing.T) {

runPipeline("test/sample_steps_passing.yml", testRunFlags)

expectPods := [2]string{"sample-steps-passing-step1-master", "sample-steps-passing-step2-master"}
expectPods := [2]string{"sample-steps-passing-version1-step1-master", "sample-steps-passing-version1a-step2-master"}

for _, p := range expectPods {
if deleted["sample-steps-passing-step1-master"] != 2 {
if deleted[p] != 2 {
t.Errorf("excepted delete of "+p+" to be called twice, got %i", deleted[p])
}
if created[p] != 1 {
Expand Down
2 changes: 1 addition & 1 deletion cli/pipeline/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestCompileTemplate(t *testing.T) {
pod := &v1.Pod{}
yaml.NewYAMLOrJSONDecoder(stepPodBuffer, 4096).Decode(pod)

if pod.Name != "sample-steps-passing-step1-master" {
if pod.Name != "sample-steps-passing-version1-step1-master" {
t.Errorf("Pod name is %s", pod.Name)
}

Expand Down

0 comments on commit 585d278

Please sign in to comment.