dwyl / hits-elixir

:chart_with_upwards_trend: An Elixir implementation of the "Hits" project (a super-basic "Web Page View Counter")
http://hits.dwyl.io
GNU General Public License v2.0
31 stars 1 forks source link

Fix Test - Confirm User Agent String is Saved to File (App.RouterTest) #17

Closed leordev closed 6 years ago

leordev commented 6 years ago

While I was about to test the solution for issue #13, I found issue on current testing...

20:56:41.607 [info]  Started application on port: 8080
...

  1) test Confirm User Agent String is Saved to File (App.RouterTest)
     test/router_test.exs:58
     ** (MatchError) no match of right hand side value: {:error, :enoent}
     code: agent = read_agent_file(hash)
     stacktrace:
       test/router_test.exs:78: App.RouterTest.read_agent_file/1
       test/router_test.exs:71: (test)

....

Finished in 0.1 seconds
8 tests, 1 failure

Randomized with seed 631579

I will fix it, don't worry, I'm just logging! :)

nelsonic commented 6 years ago

Fixed in #18 ✅