File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
tests/integration/standard Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
-
15
14
from tests .integration import use_singledc , PROTOCOL_VERSION
16
15
17
16
import logging
26
25
from six .moves import range
27
26
from threading import Event
28
27
29
- from cassandra .cluster import Cluster
28
+ from cassandra import ConsistencyLevel
29
+ from cassandra .cluster import Cluster , EXEC_PROFILE_DEFAULT , ExecutionProfile
30
30
from cassandra .concurrent import execute_concurrent , execute_concurrent_with_args
31
31
from cassandra .policies import HostDistance
32
32
from cassandra .query import SimpleStatement
@@ -44,7 +44,10 @@ def setUp(self):
44
44
"Protocol 2.0+ is required for Paging state, currently testing against %r"
45
45
% (PROTOCOL_VERSION ,))
46
46
47
- self .cluster = Cluster (protocol_version = PROTOCOL_VERSION )
47
+ self .cluster = Cluster (
48
+ protocol_version = PROTOCOL_VERSION ,
49
+ execution_profiles = {EXEC_PROFILE_DEFAULT : ExecutionProfile (consistency_level = ConsistencyLevel .LOCAL_QUORUM )}
50
+ )
48
51
if PROTOCOL_VERSION < 3 :
49
52
self .cluster .set_core_connections_per_host (HostDistance .LOCAL , 1 )
50
53
self .session = self .cluster .connect (wait_for_all_pools = True )
You can’t perform that action at this time.
0 commit comments