File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ services:
103
103
- all
104
104
105
105
redis-stack :
106
- image : ${REDIS_STACK_IMAGE:-redis/redis-stack-server:edge }
106
+ image : ${REDIS_STACK_IMAGE:-redis/redis-stack-server:latest }
107
107
container_name : redis-stack
108
108
ports :
109
109
- 6479:6379
@@ -112,6 +112,7 @@ services:
112
112
profiles :
113
113
- standalone
114
114
- all-stack
115
+ - all
115
116
116
117
redis-stack-graph :
117
118
image : redis/redis-stack-server:6.2.6-v15
Original file line number Diff line number Diff line change 1
1
import asyncio
2
2
import socket
3
3
import types
4
+ import errno
4
5
from unittest .mock import patch
5
6
6
7
import pytest
@@ -534,7 +535,7 @@ async def test_network_connection_failure():
534
535
with pytest .raises (ConnectionError ) as e :
535
536
redis = Redis (host = "127.0.0.1" , port = 9999 )
536
537
await redis .set ("a" , "b" )
537
- assert str (e .value ).startswith ("Error 111 connecting to 127.0.0.1:9999. Connect" )
538
+ assert str (e .value ).startswith (f "Error { errno . ECONNREFUSED } connecting to 127.0.0.1:9999. Connect" )
538
539
539
540
540
541
async def test_unix_socket_connection_failure ():
Original file line number Diff line number Diff line change 4
4
import sys
5
5
import threading
6
6
import types
7
+ import errno
7
8
from typing import Any
8
9
from unittest import mock
9
10
from unittest .mock import call , patch
@@ -352,7 +353,7 @@ def test_network_connection_failure():
352
353
with pytest .raises (ConnectionError ) as e :
353
354
redis = Redis (port = 9999 )
354
355
redis .set ("a" , "b" )
355
- assert str (e .value ) == "Error 111 connecting to localhost:9999. Connection refused."
356
+ assert str (e .value ) == f "Error { errno . ECONNREFUSED } connecting to localhost:9999. Connection refused."
356
357
357
358
358
359
def test_unix_socket_connection_failure ():
Original file line number Diff line number Diff line change 1
1
import contextlib
2
2
import multiprocessing
3
+ import sys
3
4
4
5
import pytest
5
6
import redis
8
9
9
10
from .conftest import _get_client
10
11
12
+ if sys .platform == "darwin" :
13
+ multiprocessing .set_start_method ("fork" , force = True )
11
14
12
15
@contextlib .contextmanager
13
16
def exit_callback (callback , * args ):
You can’t perform that action at this time.
0 commit comments