Fix pointlog tests

This commit is contained in:
John Donaldson 2022-10-28 14:42:03 -07:00
parent 44a79c4b6e
commit 00cc3dc4ef
1 changed files with 4 additions and 4 deletions

View File

@ -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