()
| 1146 | timeouts = [] |
| 1147 | |
| 1148 | def checkout(): |
| 1149 | barrier.wait() |
| 1150 | for x in range(1): |
| 1151 | now = time.time() |
| 1152 | try: |
| 1153 | c1 = p.connect() |
| 1154 | except tsa.exc.TimeoutError: |
| 1155 | timeouts.append(time.time() - now) |
| 1156 | continue |
| 1157 | time.sleep(4) |
| 1158 | c1.close() |
| 1159 | |
| 1160 | barrier = threading.Barrier(10) |
| 1161 | threads = [] |
no test coverage detected