mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Fix node eligibility test
This commit is contained in:
@@ -37,8 +37,9 @@ func TestNodeEligibilityCommand_Fails(t *testing.T) {
|
||||
if code := cmd.Run([]string{"-address=nope", "-enable", "12345678-abcd-efab-cdef-123456789abc"}); code != 1 {
|
||||
t.Fatalf("expected exit code 1, got: %d", code)
|
||||
}
|
||||
if out := ui.ErrorWriter.String(); !strings.Contains(out, "Error toggling") {
|
||||
t.Fatalf("expected failed toggle error, got: %s", out)
|
||||
expected := "Error updating scheduling eligibility"
|
||||
if out := ui.ErrorWriter.String(); !strings.Contains(out, expected) {
|
||||
t.Fatalf("expected %q, got: %s", expected, out)
|
||||
}
|
||||
ui.ErrorWriter.Reset()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user