From 564be22f796420f576cd3b08fbf6f2ffa8adb1b0 Mon Sep 17 00:00:00 2001 From: Seth Hoenig Date: Wed, 14 Jul 2021 10:44:09 -0500 Subject: [PATCH] core: add spec changed test with constriants --- nomad/structs/structs_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 {