This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
2- # Copyright (C) 2015, 2018 IBM Corp. All rights reserved.
2+ # Copyright (C) 2015, 2020 IBM Corp. All rights reserved.
33#
44# Licensed under the Apache License, Version 2.0 (the "License");
55# you may not use this file except in compliance with the License.
@@ -220,10 +220,13 @@ def test_create_replication(self):
220220 def test_timeout_in_create_replication (self ):
221221 """
222222 Test that a read timeout exception is thrown when creating a
223- replicator with a timeout value of 500 ms .
223+ replicator with a read timeout value of 5 s .
224224 """
225- # Setup client with a timeout
226- self .set_up_client (auto_connect = True , timeout = .5 )
225+ # Setup client with a read timeout (but the standard connect timeout)
226+ # Note that this timeout applies to all connections from this client
227+ # setting it too short can cause intermittent failures when responses
228+ # are not quick enough. Setting it too long makes the test take longer.
229+ self .set_up_client (auto_connect = True , timeout = (30 ,5 ))
227230 self .db = self .client [self .test_target_dbname ]
228231 self .target_db = self .client [self .test_dbname ]
229232 # Construct a replicator with the updated client
You can’t perform that action at this time.
0 commit comments