Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
preetapan committed Aug 1, 2018
1 parent 817ffc9 commit bb26ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func TestTask_AddAffinity(t *testing.T) {
// Add an affinity to the task
out := task.AddAffinity(NewAffinity("kernel.version", "=", "4.6", 100))
require := require.New(t)
require.Len(out, 1)
require.Len(out.Affinities, 1)

// Check that the task was returned
if out != task {
Expand Down

0 comments on commit bb26ba3

Please sign in to comment.