mirror of
https://github.com/prometheus/prometheus.git
synced 2025-10-24 22:11:02 +02:00
It seems sometimes you can get error like:
Error: Not equal:
expected: []byte(nil)
actual : []byte{}
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,3 @@
-([]uint8) <nil>
+([]uint8) {
+}
This commit does what bytes.Equal does to silence those differences. I'm
not sure if this is a correct solution or just covering up the actual bug.
Closes #9574
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>