Unverified Commit 7bb7132c authored by Preetha Appan's avatar Preetha Appan
Browse files

Flaky contains check replaced with regex

parent 1e72b4de
Branches unavailable
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -2,9 +2,9 @@ package command
import (
"fmt"
"regexp"
"strings"
"testing"
"time"
"github.com/hashicorp/nomad/helper/uuid"
......@@ -196,7 +196,7 @@ func TestAllocStatusCommand_Run(t *testing.T) {
}
out = ui.OutputWriter.String()
require.Contains(out, "Rescheduled Alloc ID")
require.Contains(out, "Reschedule Attempts = 1/2")
require.Regexp(regexp.MustCompile(".*Reschedule Attempts\\s*=\\s*1/2"), out)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment