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