From 00cc3dc4ef9f3ead257f514bc88c24060d83745d Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Fri, 28 Oct 2022 14:42:03 -0700 Subject: [PATCH] Fix pointlog tests --- cmd/mothd/state_filesystem_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/mothd/state_filesystem_test.go b/cmd/mothd/state_filesystem_test.go index fa91a2c..3434168 100644 --- a/cmd/mothd/state_filesystem_test.go +++ b/cmd/mothd/state_filesystem_test.go @@ -268,13 +268,13 @@ func TestStatePointsRemovalAtTime(t *testing.T) { } // Test that we bail out early, since the point log is sorted - if exists := s.PointExistsAtTime(team, category, points2+200, time1-10); ! exists { - t.Errorf("Expected to find matching result, found none, instead") + if exists := s.PointExistsAtTime(team, category, points2+200, time1-10); exists { + t.Errorf("Expected to find no matching result, found something, instead") } // Or if the record just doesn't exist - if exists := s.PointExistsAtTime(team, category, points2, time2+10); ! exists { - t.Errorf("Expected to find matching result, found none, instead") + if exists := s.PointExistsAtTime(team, category, points2, time2+10); exists { + t.Errorf("Expected to find matching result, found something, instead") } // Test removing points