mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
test fixes
This commit is contained in:
@@ -48,7 +48,7 @@ func TestNodeStatusCommand_Self(t *testing.T) {
|
||||
if !strings.Contains(out, "mynode") {
|
||||
t.Fatalf("expect to find mynode, got: %s", out)
|
||||
}
|
||||
if strings.Contains(out, "Allocations") {
|
||||
if !strings.Contains(out, "No allocations placed") {
|
||||
t.Fatalf("should not dump allocations")
|
||||
}
|
||||
ui.OutputWriter.Reset()
|
||||
@@ -119,7 +119,7 @@ func TestNodeStatusCommand_Run(t *testing.T) {
|
||||
if !strings.Contains(out, "mynode") {
|
||||
t.Fatalf("expect to find mynode, got: %s", out)
|
||||
}
|
||||
if strings.Contains(out, "Allocations") {
|
||||
if !strings.Contains(out, "No allocations placed") {
|
||||
t.Fatalf("should not dump allocations")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user