Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
08d9c4b0
Commit
08d9c4b0
authored
7 years ago
by
Michael Schurter
Browse files
Options
Download
Email Patches
Plain Diff
Fix ShutdownDelay diff test
parent
b4480cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nomad/structs/diff_test.go
+19
-7
nomad/structs/diff_test.go
with
19 additions
and
7 deletions
+19
-7
nomad/structs/diff_test.go
+
19
-
7
View file @
08d9c4b0
...
...
@@ -1933,14 +1933,14 @@ func TestTaskGroupDiff(t *testing.T) {
Name
:
"bar"
,
Driver
:
"docker"
,
},
{
Name
:
"baz"
,
ShutdownDelay
:
2
*
time
.
Second
,
},
{
Name
:
"bam"
,
Driver
:
"docker"
,
},
{
Name
:
"baz"
,
ShutdownDelay
:
2
*
time
.
Second
,
},
},
},
Expected
:
&
TaskGroupDiff
{
...
...
@@ -1968,6 +1968,12 @@ func TestTaskGroupDiff(t *testing.T) {
Old
:
""
,
New
:
"false"
,
},
{
Type
:
DiffTypeAdded
,
Name
:
"ShutdownDelay"
,
Old
:
""
,
New
:
"0"
,
},
},
},
{
...
...
@@ -1980,9 +1986,9 @@ func TestTaskGroupDiff(t *testing.T) {
Fields
:
[]
*
FieldDiff
{
{
Type
:
DiffTypeEdited
,
Name
:
"
Driver
"
,
Old
:
"1
s
"
,
New
:
"2
s
"
,
Name
:
"
ShutdownDelay
"
,
Old
:
"1
000000000
"
,
New
:
"2
000000000
"
,
},
},
},
...
...
@@ -2008,6 +2014,12 @@ func TestTaskGroupDiff(t *testing.T) {
Old
:
"false"
,
New
:
""
,
},
{
Type
:
DiffTypeDeleted
,
Name
:
"ShutdownDelay"
,
Old
:
"0"
,
New
:
""
,
},
},
},
},
...
...
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