From 7742891949e3136bed4ffdcb404eb89886573a00 Mon Sep 17 00:00:00 2001 From: joshvanl Date: Mon, 19 Aug 2024 09:41:39 -0500 Subject: [PATCH] Read all logs Signed-off-by: joshvanl --- tests/e2e/standalone/init_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e/standalone/init_test.go b/tests/e2e/standalone/init_test.go index 20021b564..b4f8e804c 100644 --- a/tests/e2e/standalone/init_test.go +++ b/tests/e2e/standalone/init_test.go @@ -19,6 +19,7 @@ package standalone_test import ( "context" "fmt" + "io" "net" "os" "path/filepath" @@ -223,7 +224,9 @@ func TestStandaloneInit(t *testing.T) { ShowStderr: true, }) require.NoError(t, err) - fmt.Printf(">>%s\n", b) + logs, err := io.ReadAll(b) + require.NoError(t, err) + fmt.Printf(">>%s\n", logs) require.NoError(t, err, "init failed") assert.Contains(t, output, "Success! Dapr is up and running.")