File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ permissions:
7
7
8
8
env :
9
9
CONSOLE_OUTPUT : XTerm
10
- ASYNC_REDIS_MASTER : " redis-master:6379"
11
- ASYNC_REDIS_SLAVE : " redis-slave:6379"
12
- ASYNC_REDIS_SENTINEL : " redis-sentinel:26379"
10
+ ASYNC_REDIS_MASTER : " redis://redis -master:6379"
11
+ ASYNC_REDIS_SLAVE : " redis://redis -slave:6379"
12
+ ASYNC_REDIS_SENTINEL : " redis://redis -sentinel:26379"
13
13
14
14
jobs :
15
15
test :
Original file line number Diff line number Diff line change 16
16
let ( :slave_host ) { ENV [ 'ASYNC_REDIS_SLAVE' ] }
17
17
let ( :sentinel_host ) { ENV [ 'ASYNC_REDIS_SENTINEL' ] }
18
18
19
+ let ( :sentinels ) { [
20
+ Async ::Redis ::Endpoint . parse ( sentinel_host )
21
+ ] }
22
+
23
+ let ( :client ) { subject . new ( sentinels ) }
24
+ let ( :slave_client ) { subject . new ( sentinels , role : :slave ) }
25
+
19
26
it "should resolve master address" do
20
27
unless master_host and slave_host and sentinel_host
21
28
skip ( "No sentinel host provided." )
29
+
30
+ client . set ( "key" , "value" )
31
+
32
+ expect ( slave_client . get ( "key" ) ) . to be == "value"
22
33
end
23
34
end
24
35
end
You can’t perform that action at this time.
0 commit comments