test fixes

This commit is contained in:
Alex Dadgar
2017-07-07 13:55:39 -07:00
parent 50e3178d2d
commit beb01f1754
9 changed files with 14 additions and 9 deletions

View File

@@ -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")
}