From 9630d9d281e6dc2ea20f7def3531ee3fcf8c6c47 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 1 Aug 2022 12:18:24 -0500 Subject: [PATCH] seqmap: compare ints instead of uints When a test fails with a uint comparison, assert displays the hex code instead of an int, making it harder to debug. Use ints in sequmap test asserts instead of uints for better readability when tests fail Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- worker/imap/seqmap_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/imap/seqmap_test.go b/worker/imap/seqmap_test.go index 10d67f3..7067721 100644 --- a/worker/imap/seqmap_test.go +++ b/worker/imap/seqmap_test.go @@ -31,11 +31,11 @@ func TestSeqMap(t *testing.T) { assert.Equal(false, found) uid, found = seqmap.Get(1) - assert.Equal(uint32(1337), uid) + assert.Equal(1337, int(uid)) assert.Equal(true, found) uid, found = seqmap.Pop(1) - assert.Equal(uint32(1337), uid) + assert.Equal(1337, int(uid)) assert.Equal(true, found) assert.Equal(2, seqmap.Size())