add logs inside wait-for and before,after logout (#19362)

## Summary

PR made to add logs to help determine why integration test hangs on logout.

## Testing notes

No need for testing since we only ever add logs in test code here.

related to: #19256
This commit is contained in:
Siddarth Kumar 2024-04-02 13:54:44 +05:30 committed by GitHub
parent dd7795a8b8
commit 68e4cf3632
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -95,6 +95,7 @@
(defn logout
[]
(log/info (str "==== before dispatch logout ===="))
(rf/dispatch [:logout]))
(defn log-headline
@ -123,6 +124,7 @@
:timeout-ms timeout-ms}
::timeout)))
timeout-ms)]
(log/info (str "==== inside wait-for after let block ===="))
(rf/add-post-event-callback
cb-id
(fn [[event-id & _]]
@ -256,7 +258,9 @@
(setup-app)
(setup-account)
(logout)
(wait-for [::logout/logout-method])))))
(log/info (str "==== before wait-for logout ===="))
(wait-for [::logout/logout-method])
(log/info (str "==== after wait-for logout ===="))))))
;;;; Fixtures
@ -282,7 +286,9 @@
:after (fn []
(test/async done
(promesa/do (logout)
(log/info (str "==== before wait-for logout ===="))
(wait-for [::logout/logout-method])
(log/info (str "==== after wait-for logout ===="))
(done))))})
([] (fixture-session [:new-account])))