diff --git a/nomad/structs/structs_test.go b/nomad/structs/structs_test.go index e985dc8ad..7fda6ba0d 100644 --- a/nomad/structs/structs_test.go +++ b/nomad/structs/structs_test.go @@ -278,6 +278,12 @@ func TestJob_SpecChanged(t *testing.T) { Original: base, New: change, }, + { + Name: "With Constraints", + Changed: false, + Original: &Job{Constraints: []*Constraint{{"A", "B", "="}}}, + New: &Job{Constraints: []*Constraint{{"A", "B", "="}}}, + }, } for _, c := range cases {