Skip to content

Commit

Permalink
Adds dapr_scheduler log output
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Aug 17, 2024
1 parent bd413b1 commit 8353f3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/e2e/standalone/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package standalone_test

import (
"context"
"fmt"
"net"
"os"
"path/filepath"
Expand Down Expand Up @@ -213,6 +214,17 @@ func TestStandaloneInit(t *testing.T) {
}
output, err := cmdInit(args...)
t.Log(output)

cli, err := dockerClient.NewClientWithOpts(dockerClient.FromEnv)
require.NoError(t, err)

b, err := cli.ContainerLogs(context.Background(), "dapr_scheduler", types.ContainerLogsOptions{
ShowStdout: true,
ShowStderr: true,
})
require.NoError(t, err)
fmt.Printf(">>%s\n", b)

require.NoError(t, err, "init failed")
assert.Contains(t, output, "Success! Dapr is up and running.")

Expand Down

0 comments on commit 8353f3f

Please sign in to comment.