Skip to content

Commit

Permalink
Read all logs
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Aug 19, 2024
1 parent 8353f3f commit 7742891
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/standalone/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package standalone_test
import (
"context"
"fmt"
"io"
"net"
"os"
"path/filepath"
Expand Down Expand Up @@ -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.")
Expand Down

0 comments on commit 7742891

Please sign in to comment.