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:
parent
dd7795a8b8
commit
68e4cf3632
|
@ -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])))
|
||||
|
||||
|
|
Loading…
Reference in New Issue