battle-snake / battle_snake

AI Programing Competition Game Server
GNU Affero General Public License v3.0
12 stars 11 forks source link

Suspicious, possible run order dependent test failure #11

Open Dkendal opened 6 years ago

Dkendal commented 6 years ago

https://circleci.com/gh/battle-snake/battle_snake/10

..........................................................................................................

  1) test GET index lists all entries on index (BsWeb.GameControllerTest)
     test/controllers/game_controller_test.exs:13
     ** (UndefinedFunctionError) function BsRepo.all/1 is undefined or private. Did you mean one of:

           * all/1
           * all/2

     code: conn = get(conn, game_path(conn, :index))
     stacktrace:
       (bs) BsRepo.all(BsRepo.GameForm)
       (bs) lib/bs_web/controllers/game_controller.ex:8: BsWeb.GameController.index/2
       (bs) lib/bs_web/controllers/game_controller.ex:1: BsWeb.GameController.action/2
       (bs) lib/bs_web/controllers/game_controller.ex:1: BsWeb.GameController.phoenix_controller_pipeline/2
       (bs) lib/bs_web/endpoint.ex:1: BsWeb.Endpoint.instrument/4
       (phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
       (bs) lib/bs_web/endpoint.ex:1: BsWeb.Endpoint.plug_builder_call/2
       (bs) lib/bs_web/endpoint.ex:1: BsWeb.Endpoint.call/2
       (phoenix) lib/phoenix/test/conn_test.ex:224: Phoenix.ConnTest.dispatch/5
       test/controllers/game_controller_test.exs:14: (test)

     The following output was logged:
     19:28:11.705 request_id=4mojb1dt49b6ommmr54cn3pfrgb10u0t [info] GET /
     19:28:11.705 request_id=4mojb1dt49b6ommmr54cn3pfrgb10u0t [debug] Processing with BsWeb.GameController.index/2
       Parameters: %{}
       Pipelines: [:browser]
     19:28:11.711 request_id=4mojb1dt49b6ommmr54cn3pfrgb10u0t [info] Sent 500 in 6ms

...........

Finished in 0.9 seconds
3 properties, 116 tests, 1 failure, 1 skipped

Randomized with seed 484308