From fc099221f7c671423d435ee57d71c6fdd5ae48a0 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Fri, 15 Nov 2019 22:10:12 +0100 Subject: [PATCH] Add logs before and after waiting for Authelia service in suites. --- suites/environment.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/suites/environment.go b/suites/environment.go index 4a2735f6..6fb84e88 100644 --- a/suites/environment.go +++ b/suites/environment.go @@ -31,6 +31,8 @@ func waitUntilServiceLogDetected( } func waitUntilAutheliaIsReady(dockerEnvironment *DockerEnvironment) error { + log.Info("Waiting for Authelia to be ready...") + err := waitUntilServiceLogDetected( 5*time.Second, 90*time.Second, @@ -42,10 +44,17 @@ func waitUntilAutheliaIsReady(dockerEnvironment *DockerEnvironment) error { return err } - return waitUntilServiceLogDetected( + err = waitUntilServiceLogDetected( 5*time.Second, 90*time.Second, dockerEnvironment, "authelia-frontend", "You can now view authelia-portal in the browser.") + + if err != nil { + return err + } + log.Info("Authelia is now ready!") + + return nil }