mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 12:26:14 +02:00
test(kubernetes): replace equality check with JSON equality assertion (#16246)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
parent
3d603d1957
commit
6719867196
@ -199,7 +199,7 @@ func requireTargetGroups(t *testing.T, expected, res map[string]*targetgroup.Gro
|
||||
panic(err)
|
||||
}
|
||||
|
||||
require.Equal(t, string(b1), string(b2))
|
||||
require.JSONEq(t, string(b1), string(b2))
|
||||
}
|
||||
|
||||
// marshalTargetGroups serializes a set of target groups to JSON, ignoring the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user