beyond-all-reason / teiserver

Middleware server for online gaming
https://www.beyondallreason.info/
MIT License
50 stars 47 forks source link

[Bug]: Test failure on local for server day task #373

Closed jauggy closed 3 weeks ago

jauggy commented 1 month ago

Describe the Bug

One of the tests fails inside PersistServerDayTaskTest

Reproduce the bug

mix test pathto/lib/teiserver/logging/tasks/persist_server_day_task.ex

Gives result


  1) test perform task (Teiserver.Logging.Tasks.PersistServerDayTaskTest)
     test/teiserver/logging/persist_server_day_task_test.exs:7
     ** (KeyError) key :date not found in: nil. If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map
     code: assert log.date == Timex.to_date({2021, 1, 1})
     stacktrace:
       test/teiserver/logging/persist_server_day_task_test.exs:17: (test)

Finished in 0.1 seconds (0.00s async, 0.1s sync)
1 test, 1 failure

Screenshots

No response

Additional context

No response

L-e-x-o-n commented 3 weeks ago

Unable to reproduce on latest version.