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

Commit

Permalink
Merge pull request #12 from deliveroo/RP-XXX/get-tests-passing
Browse files Browse the repository at this point in the history
[RP-XXX] Get tests passing on go 1.10.1
  • Loading branch information
knaveofdiamonds authored Apr 23, 2018
2 parents fee4367 + 82b63ee commit 37d7d01
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/pipeline/pipeline_definition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestParsePipeline(t *testing.T) {
pipeline := parsePipeline(data)

if len(pipeline.Steps) != 2 {
t.Errorf("excepted two steps, got %i", len(pipeline.Steps))
t.Errorf("excepted two steps, got %d", len(pipeline.Steps))
}

if pipeline.Bucket != "canoe-sample-pipeline" {
Expand Down
2 changes: 1 addition & 1 deletion cli/pipeline/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func TestRunPipelineStartTimeout(t *testing.T) {
if len(errors) != 2 {
t.Errorf("excepted two errors, actual %v", len(errors))
}
msg := "[paddle] [Timeout waiting for pod to start. Cluster might not have sufficient resources.]"
msg := "[paddle] [Timed out waiting for pod to start. Cluster might not have sufficient resources.]"
for _, err := range errors {
if err != msg {
t.Errorf("Expected timeout error, got %s", err)
Expand Down
2 changes: 1 addition & 1 deletion cli/pipeline/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func Watch(ctx context.Context, c kubernetes.Interface, watchPod *v1.Pod) (<-cha
parsePodStatus(pod)
} else {
if err != nil {
log.Println("Error polling pod status: %s", err.Error())
log.Printf("Error polling pod status: %s\n", err.Error())
} else {
log.Println("No pod status")
}
Expand Down
4 changes: 2 additions & 2 deletions cli/pipeline/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ func TestWatch(t *testing.T) {
types := []WatchEventType{Added, Added, Completed, Removed, Failed}

if len(events) != len(types) {
t.Errorf("Expected %i events, got %i", len(types), len(events))
t.Errorf("Expected %d events, got %d", len(types), len(events))
}

for i, et := range types {
if events[i].Type != et {
t.Errorf("Event %i type is %v, expected %v", i, events[i].Type, et)
t.Errorf("Event %d type is %v, expected %v", i, events[i].Type, et)
}
}
}

0 comments on commit 37d7d01

Please sign in to comment.