From feaeee90e271b0c0f5747f856df2b622447505cc Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 3 May 2020 20:28:26 +0200 Subject: [PATCH] inomap: fix TestSpill bit check Wrong bit operator was used. --- internal/inomap/inomap_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/inomap/inomap_test.go b/internal/inomap/inomap_test.go index 931547e..6fbb4ef 100644 --- a/internal/inomap/inomap_test.go +++ b/internal/inomap/inomap_test.go @@ -104,11 +104,11 @@ func TestSpill(t *testing.T) { var q QIno q.Ino = maxPassthruIno + 1 out1 := m.Translate(q) - if out1|spillBit == 0 { + if out1&spillBit == 0 { t.Error("spill bit not set") } out2 := m.Translate(q) - if out2|spillBit == 0 { + if out2&spillBit == 0 { t.Error("spill bit not set") } if out1 != out2 {