test(e2e): dump console logs when test failed

This commit is contained in:
rcmerci
2025-05-22 15:32:52 +08:00
parent ed32cfb4c9
commit 5e60ce853d
5 changed files with 39 additions and 9 deletions

View File

@@ -19,7 +19,7 @@
tx# (max local-tx# remote-tx#)]
~@body
(loop [i# 5]
(when (zero? i#) (throw (ex-info "wait-tx-updated failed" {:data m#})))
(when (zero? i#) (throw (ex-info "wait-tx-updated failed" {:old m# :new (get-rtc-tx)})))
(util/wait-timeout 1000)
(let [new-m# (get-rtc-tx)
new-local-tx# (or (:local-tx new-m#) 0)