Flaky contains check replaced with regex

This commit is contained in:
Preetha Appan 2018-01-29 10:06:58 -06:00
parent 95dba191ac
commit 646cef4cef
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 2 additions and 2 deletions

View File

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