Skip to content

Commit

Permalink
Update test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Newton committed Nov 29, 2023
1 parent bb5bb6f commit 40c378f
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ func TestNodeStatus_UpdatePhase(t *testing.T) {
err := &core.ExecutionError{}
ns.UpdatePhase(p, n, msg, err)

assert.Equal(t, *ns.LastUpdatedAt, n)
assert.Nil(t, ns.LastUpdatedAt)
assert.Nil(t, ns.QueuedAt)
assert.Equal(t, *ns.LastAttemptStartedAt, n)
assert.Equal(t, *ns.StartedAt, n)
assert.Nil(t, ns.LastAttemptStartedAt)
assert.Nil(t, ns.StartedAt)
assert.Equal(t, *ns.StoppedAt, n)
assert.Equal(t, p, ns.Phase)
assert.Equal(t, msg, ns.Message)
assert.Equal(t, ns.Message, "")
assert.Equal(t, ns.Error.ExecutionError, err)
})

Expand All @@ -334,13 +334,13 @@ func TestNodeStatus_UpdatePhase(t *testing.T) {
err := &core.ExecutionError{}
ns.UpdatePhase(p, n, msg, err)

assert.Equal(t, *ns.LastUpdatedAt, n)
assert.Nil(t, ns.LastUpdatedAt)
assert.Nil(t, ns.QueuedAt)
assert.Equal(t, *ns.LastAttemptStartedAt, n)
assert.Equal(t, *ns.StartedAt, n)
assert.Nil(t, ns.LastAttemptStartedAt)
assert.Nil(t, ns.StartedAt)
assert.Equal(t, *ns.StoppedAt, n)
assert.Equal(t, p, ns.Phase)
assert.Equal(t, msg, ns.Message)
assert.Equal(t, ns.Message, "")
assert.Equal(t, ns.Error.ExecutionError, err)
})

Expand Down

0 comments on commit 40c378f

Please sign in to comment.