Skip to content

Commit

Permalink
chore: address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockopp committed Jun 5, 2023
1 parent 2e8028b commit d58ba43
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion action/schedule/add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestSchedule_Config_Add(t *testing.T) {
}

if err != nil {
t.Errorf("Add for %s returned err: %v", err, test.name)
t.Errorf("Add for %s returned err: %v", test.name, err)
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions action/schedule/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestSchedule_Config_Get(t *testing.T) {
// create a vela client
client, err := vela.NewClient(s.URL, "vela", nil)
if err != nil {
t.Errorf("unable to create tes client: %v", err)
t.Errorf("unable to create test client: %v", err)
}

// setup tests
Expand Down Expand Up @@ -116,7 +116,7 @@ func TestSchedule_Config_Get(t *testing.T) {
}

if err != nil {
t.Errorf("Get for %s returned err: %v", err, test.name)
t.Errorf("Get for %s returned err: %v", test.name, err)
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions action/schedule/remove_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestSchedule_Config_Remove(t *testing.T) {
// create a vela client
client, err := vela.NewClient(s.URL, "vela", nil)
if err != nil {
t.Errorf("unable to create client: %v", err)
t.Errorf("unable to create test client: %v", err)
}

// setup tests
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestSchedule_Config_Remove(t *testing.T) {
}

if err != nil {
t.Errorf("Remove for %s returned err: %v", err, test.name)
t.Errorf("Remove for %s returned err: %v", test.name, err)
}
})
}
Expand Down
8 changes: 4 additions & 4 deletions action/schedule/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ func TestSchedule_table(t *testing.T) {

if test.failure {
if err == nil {
t.Errorf("table should have returned err")
t.Errorf("table for %s should have returned err", test.name)
}

return
}

if err != nil {
t.Errorf("table returned err: %v", err)
t.Errorf("table for %s returned err: %v", test.name, err)
}
})
}
Expand Down Expand Up @@ -80,14 +80,14 @@ func TestSchedule_wideTable(t *testing.T) {

if test.failure {
if err == nil {
t.Errorf("wideTable should have returned err")
t.Errorf("wideTable for %s should have returned err", test.name)
}

return
}

if err != nil {
t.Errorf("wideTable returned err: %v", err)
t.Errorf("wideTable for %s returned err: %v", test.name, err)
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions action/schedule/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestSchedule_Config_Update(t *testing.T) {
// create a vela client
client, err := vela.NewClient(s.URL, "vela", nil)
if err != nil {
t.Errorf("unable to create client: %v", err)
t.Errorf("unable to create test client: %v", err)
}

// setup tests
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestSchedule_Config_Update(t *testing.T) {
}

if err != nil {
t.Errorf("Update for %s returned err: %v", err, test.name)
t.Errorf("Update for %s returned err: %v", test.name, err)
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion action/schedule/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func TestSchedule_Config_Validate(t *testing.T) {
}

if err != nil {
t.Errorf("Validate %s returned err: %v", test.name, err)
t.Errorf("Validate for %s returned err: %v", test.name, err)
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions action/schedule/view_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestSchedule_Config_View(t *testing.T) {
// create a vela client
client, err := vela.NewClient(s.URL, "vela", nil)
if err != nil {
t.Errorf("unable to create client: %v", err)
t.Errorf("unable to create test client: %v", err)
}

// setup tests
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestSchedule_Config_View(t *testing.T) {
}

if err != nil {
t.Errorf("View for %s returned err: %v", err, test.name)
t.Errorf("View for %s returned err: %v", test.name, err)
}
})
}
Expand Down

0 comments on commit d58ba43

Please sign in to comment.