From d80fe7cc5a5c898c642be54d6b093effab11d30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Fri, 15 Aug 2025 15:40:40 +0200 Subject: [PATCH] Print user too --- client/cmd/service_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/cmd/service_test.go b/client/cmd/service_test.go index 21eb13b74..3ec12dd64 100644 --- a/client/cmd/service_test.go +++ b/client/cmd/service_test.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "os/user" "runtime" "testing" "time" @@ -59,8 +60,13 @@ func waitForServiceStatus(expectedStatus service.Status, timeout time.Duration) // TestServiceLifecycle tests the complete service lifecycle func TestServiceLifecycle(t *testing.T) { - fmt.Printf("--- Started TestServiceLifecycle test on %s\n", runtime.GOOS) - t.Log("--- Running service lifecycle test") + currentUser, err := user.Current() + if err != nil { + t.Fatalf("Failed to get current user: %v", err) + } + + fmt.Printf("--- Started TestServiceLifecycle test on %s %s\n", runtime.GOOS, currentUser.Username) + t.Log("--- Running service lifecycle test: %s, %s", runtime.GOOS, currentUser.Username) // TODO: Add support for Windows and macOS if runtime.GOOS != "linux" && runtime.GOOS != "freebsd" {