diff --git a/benchmarks/gluon_bench/imap_benchmarks/client.go b/benchmarks/gluon_bench/imap_benchmarks/client.go index 0575c553..bf69be26 100644 --- a/benchmarks/gluon_bench/imap_benchmarks/client.go +++ b/benchmarks/gluon_bench/imap_benchmarks/client.go @@ -141,8 +141,10 @@ func RandomSequenceSetRange(max uint32) *imap.SeqSet { } stop := start - for stop <= start { - stop = rand.Uint32() % max + if start != max-1 { + for stop <= start { + stop = rand.Uint32() % max + } } r := &imap.SeqSet{}