File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
tests/integration/simulacron Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 17
17
import unittest # noqa
18
18
19
19
from tests .integration .simulacron import SimulacronCluster
20
- from tests .integration import requiressimulacron
20
+ from tests .integration import ( requiressimulacron , PROTOCOL_VERSION )
21
21
from tests .integration .simulacron .utils import prime_query
22
22
23
23
from cassandra import WriteTimeout , WriteType , ConsistencyLevel
@@ -55,3 +55,19 @@ def test_writetimeout(self):
55
55
self .assertIn (consistency , str (wt ))
56
56
self .assertIn (str (received_responses ), str (wt ))
57
57
self .assertIn (str (required_responses ), str (wt ))
58
+
59
+ def test_connection_with_one_unresolvable_contact_point (self ):
60
+ self .cluster .shutdown ()
61
+
62
+ # shouldn't raise anything due to name resolution failures
63
+ Cluster (['127.0.0.1' , 'doesntresolve.becauseitcant' ],
64
+ protocol_version = PROTOCOL_VERSION ,
65
+ compression = False )
66
+
67
+ def test_connection_with_only_unresolvable_contact_points (self ):
68
+ self .cluster .shutdown ()
69
+
70
+ # shouldn't raise anything due to name resolution failures
71
+ Cluster (['doesntresolve.becauseitcant' ],
72
+ protocol_version = PROTOCOL_VERSION ,
73
+ compression = False )
You can’t perform that action at this time.
0 commit comments