Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
7bb7132c
Unverified
Commit
7bb7132c
authored
7 years ago
by
Preetha Appan
Browse files
Options
Download
Email Patches
Plain Diff
Flaky contains check replaced with regex
parent
1e72b4de
Branches unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
command/alloc_status_test.go
+2
-2
command/alloc_status_test.go
with
2 additions
and
2 deletions
+2
-2
command/alloc_status_test.go
+
2
-
2
View file @
7bb7132c
...
...
@@ -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
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help