diff options
Diffstat (limited to 'worker/imap/seqmap_test.go')
-rw-r--r-- | worker/imap/seqmap_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/worker/imap/seqmap_test.go b/worker/imap/seqmap_test.go index 42c06f81..5d6cf796 100644 --- a/worker/imap/seqmap_test.go +++ b/worker/imap/seqmap_test.go @@ -22,8 +22,11 @@ func TestSeqMap(t *testing.T) { _, found = seqmap.Pop(0) assert.Equal(false, found) - seqmap.Initialize([]uint32{1337, 42, 1107}) + uids := []uint32{1337, 42, 1107} + seqmap.Initialize(uids) assert.Equal(3, seqmap.Size()) + // Original list should remain unsorted + assert.Equal([]uint32{1337, 42, 1107}, uids) _, found = seqmap.Pop(0) assert.Equal(false, found) |