Skip to content

Instantly share code, notes, and snippets.

@rmarronnier
Created September 15, 2019 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmarronnier/1929239a44dabdef774141f1dabd53be to your computer and use it in GitHub Desktop.
Save rmarronnier/1929239a44dabdef774141f1dabd53be to your computer and use it in GitHub Desktop.
crystal spec errors on last amber master
Failures:
1) Amber::DSL::Server routes with a namespace should not have /hello route
Failure/Error: server.router.route_defined?(request).should eq(false)
Expected: false
got: true
# spec/amber/dsl/server_spec.cr:159
2) Amber::Pipe::Session session persist across different requests Redis Store sets session value in controller
Errno: Error connecting to 'localhost:6379': Connection refused (Redis::CannotConnectError)
from lib/redis/src/redis/connection.cr:12:5 in 'initialize'
from lib/redis/src/redis/connection.cr:8:3 in 'new'
from lib/redis/src/redis.cr:156:19 in 'connect'
from lib/redis/src/redis.cr:116:5 in 'initialize:url'
from lib/redis/src/redis.cr:95:3 in 'new:url'
from src/amber/router/session/session_store.cr:19:7 in 'redis_store'
from src/amber/router/session/session_store.cr:10:31 in 'build'
from src/amber/router/context.cr:30:5 in 'session'
from spec/amber/pipes/session_spec.cr:41:13 in '->'
from /usr/share/crystal/src/spec/methods.cr:255:3 in 'it'
from spec/amber/pipes/session_spec.cr:32:11 in '->'
from /usr/share/crystal/src/spec/context.cr:255:3 in 'describe'
from /usr/share/crystal/src/spec/methods.cr:16:5 in 'describe'
from /usr/share/crystal/src/spec/methods.cr:25:5 in 'context'
from spec/amber/pipes/session_spec.cr:31:9 in '->'
from /usr/share/crystal/src/spec/context.cr:255:3 in 'describe'
from /usr/share/crystal/src/spec/methods.cr:16:5 in 'describe'
from /usr/share/crystal/src/spec/methods.cr:25:5 in 'context'
from spec/amber/pipes/session_spec.cr:15:7 in '->'
from /usr/share/crystal/src/spec/context.cr:255:3 in 'describe'
from /usr/share/crystal/src/spec/methods.cr:16:5 in 'describe'
from spec/amber/pipes/error_spec.cr:1:1 in '__crystal_main'
from /usr/share/crystal/src/crystal/main.cr:97:5 in 'main_user_code'
from /usr/share/crystal/src/crystal/main.cr:86:7 in 'main'
from /usr/share/crystal/src/crystal/main.cr:106:3 in 'main'
from __libc_start_main
from _start
from ???
Finished in 4:16 minutes
340 examples, 1 failures, 1 errors, 0 pending
Failed examples:
crystal spec spec/amber/dsl/server_spec.cr:157 # Amber::DSL::Server routes with a namespace should not have /hello route
crystal spec spec/amber/pipes/session_spec.cr:32 # Amber::Pipe::Session session persist across different requests Redis Store sets session value in controller
Unhandled exception: Errno: Error connecting to 'localhost:6379': Connection refused (Redis::CannotConnectError)
from lib/redis/src/redis/connection.cr:12:5 in 'initialize'
from lib/redis/src/redis/connection.cr:8:3 in 'new'
from lib/redis/src/redis.cr:156:19 in 'connect'
from lib/redis/src/redis.cr:116:5 in 'initialize:url'
from lib/redis/src/redis.cr:95:3 in 'new:url'
from /usr/share/crystal/src/spec/methods.cr:0:5 in '~Amber::Router::Session::REDIS_STORE:init'
from spec/amber/router/session/redis_store_spec.cr:1:1 in '__crystal_main'
from /usr/share/crystal/src/crystal/main.cr:97:5 in 'main_user_code'
from /usr/share/crystal/src/crystal/main.cr:86:7 in 'main'
from /usr/share/crystal/src/crystal/main.cr:106:3 in 'main'
from __libc_start_main
from _start
from ???
Crystal 0.30.1 [5e6a1b672] (2019-08-12)
LLVM: 4.0.0
Default target: x86_64-unknown-linux-gnu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment