Commit 08d9c4b0 authored by Michael Schurter's avatar Michael Schurter
Browse files

Fix ShutdownDelay diff test

parent b4480cdc
Showing with 19 additions and 7 deletions
+19 -7
......@@ -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: "1s",
New: "2s",
Name: "ShutdownDelay",
Old: "1000000000",
New: "2000000000",
},
},
},
......@@ -2008,6 +2014,12 @@ func TestTaskGroupDiff(t *testing.T) {
Old: "false",
New: "",
},
{
Type: DiffTypeDeleted,
Name: "ShutdownDelay",
Old: "0",
New: "",
},
},
},
},
......
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