()
| 148 | thread2_ref2_locked = threading.Event() |
| 149 | |
| 150 | def update_ref1() -> None: |
| 151 | try: |
| 152 | with testrepo.transaction() as txn: |
| 153 | txn.lock_ref(ref1_name) |
| 154 | thread1_ref1_locked.set() |
| 155 | thread2_ref2_locked.wait(timeout=5) |
| 156 | txn.set_target(ref1_name, target2, message='Thread 1 update') |
| 157 | results.append('thread1_success') |
| 158 | except Exception as e: |
| 159 | errors.append(('thread1', str(e))) |
| 160 | |
| 161 | def update_ref2() -> None: |
| 162 | try: |
nothing calls this directly
no test coverage detected
searching dependent graphs…