diff options
Diffstat (limited to 'swarm/storage/mru/lookup/epoch_test.go')
-rw-r--r-- | swarm/storage/mru/lookup/epoch_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/swarm/storage/mru/lookup/epoch_test.go b/swarm/storage/mru/lookup/epoch_test.go index 8c63ec6c2..62cf5523d 100644 --- a/swarm/storage/mru/lookup/epoch_test.go +++ b/swarm/storage/mru/lookup/epoch_test.go @@ -42,15 +42,15 @@ func TestAfter(t *testing.T) { Level: 4, } - if b.After(a) != true { + if !b.After(a) { t.Fatal("Expected 'after' to be true, got false") } - if b.After(b) != false { + if b.After(b) { t.Fatal("Expected 'after' to be false when both epochs are identical, got true") } - if b.After(c) != true { + if !b.After(c) { t.Fatal("Expected 'after' to be true when both epochs have the same time but the level is lower in the first one, but got false") } |