From 68e4cf363291f54636fc838edef23be47ed2fbef Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Tue, 2 Apr 2024 13:54:44 +0530 Subject: [PATCH] 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 --- src/test_helpers/integration.cljs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test_helpers/integration.cljs b/src/test_helpers/integration.cljs index 8e3c67ebc1d..41efc580fbf 100644 --- a/src/test_helpers/integration.cljs +++ b/src/test_helpers/integration.cljs @@ -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])))