Skip to content

Commit

Permalink
worker/task_handler tests: update comments to reflect test case
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Dec 7, 2023
1 parent 2a43a6c commit bc60ab8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/worker/task_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ func TestPlanInstall1(t *testing.T) {
require.Equal(t, 2, len(sms), "expect two action state machines")
require.Equal(t, 2, len(actions), "expect two actions to be performed")
require.True(t, actions[0].BMCResetPreInstall, "expect BMCResetPreInstall is true on the first action")
require.False(t, actions[1].BMCResetPreInstall, "expect BMCResetPreInstall is true on subsequent actions")
require.False(t, actions[0].BMCResetOnInstallFailure, "expect BMCResetOnInstallFailure is true for action")
require.False(t, actions[1].BMCResetPreInstall, "expect BMCResetPreInstall is false on subsequent actions")
require.False(t, actions[0].BMCResetOnInstallFailure, "expect BMCResetOnInstallFailure is false for action")
require.False(t, actions[1].BMCResetOnInstallFailure, "expect BMCResetOnInstallFailure is false for action")
require.True(t, actions[1].Final, "expect final bool is set on the last action")
require.True(t, actions[1].Final, "expect final bool is true the last action")
require.Equal(t, "bios", actions[0].Firmware.Component, "expect bios component action")
require.Equal(t, "nic", actions[1].Firmware.Component, "expect nic component action")
}
Expand Down

0 comments on commit bc60ab8

Please sign in to comment.