Skip to content

Commit c01337f

Browse files
committed
Need to connect to the correct redis on CI
1 parent 189f5ed commit c01337f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spec/spec_helper.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ require "./support/channels/*"
1212
Cable.configure do |settings|
1313
settings.route = "/updates"
1414
settings.token = "test_token"
15-
settings.url = "redis://localhost:6379"
15+
settings.url = ENV.fetch("CABLE_BACKEND_URL", "redis://localhost:6379")
16+
settings.backend_class = Cable::RedisBackend
1617
settings.backend_ping_interval = 2.seconds
1718
settings.restart_error_allowance = 2
1819
settings.on_error = ->(exception : Exception, message : String) do

0 commit comments

Comments
 (0)