()
| 159 | errors.append(('thread1', str(e))) |
| 160 | |
| 161 | def update_ref2() -> None: |
| 162 | try: |
| 163 | with testrepo.transaction() as txn: |
| 164 | txn.lock_ref(ref2_name) |
| 165 | thread2_ref2_locked.set() |
| 166 | thread1_ref1_locked.wait(timeout=5) |
| 167 | txn.set_target(ref2_name, target1, message='Thread 2 update') |
| 168 | results.append('thread2_success') |
| 169 | except Exception as e: |
| 170 | errors.append(('thread2', str(e))) |
| 171 | |
| 172 | thread1 = threading.Thread(target=update_ref1) |
| 173 | thread2 = threading.Thread(target=update_ref2) |
nothing calls this directly
no test coverage detected
searching dependent graphs…