Skip to content

Commit

Permalink
Remove testing container logs
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <me@joshvanl.dev>
  • Loading branch information
JoshVanL committed Aug 16, 2024
1 parent a168890 commit fb41c2e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/e2e/standalone/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,13 @@ package standalone_test

import (
"bufio"
"context"
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"

"github.com/docker/docker/api/types"
dockerClient "github.com/docker/docker/client"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -142,15 +137,6 @@ func ensureDaprInstallation(t *testing.T) {
"--dashboard-version", daprDashboardVersion,
}
output, err := cmdInit(args...)
if err != nil {
cli, err := dockerClient.NewClientWithOpts(dockerClient.FromEnv)
require.NoError(t, err)
reader, err := cli.ContainerLogs(context.Background(), "dapr_scheduler", types.ContainerLogsOptions{ShowStdout: true, ShowStderr: true})
require.NoError(t, err)
b, err := io.ReadAll(reader)
require.NoError(t, err)
fmt.Printf(">>%s\n", b)
}
require.NoError(t, err, "failed to install dapr:%v", output)
} else if err != nil {
// Some other error occurred.
Expand Down

0 comments on commit fb41c2e

Please sign in to comment.