(fn)
| 47 | } |
| 48 | |
| 49 | async function waitFor(fn) { |
| 50 | const deadline = Date.now() + 1000; |
| 51 | while (Date.now() < deadline) { |
| 52 | if (fn()) return true; |
| 53 | await new Promise((resolve) => setTimeout(resolve, 10)); |
| 54 | } |
| 55 | return fn(); |
| 56 | } |
| 57 | |
| 58 | function encryptedTrace(ciphertext) { |
| 59 | return { |
no test coverage detected