Skip to content

Commit a4f62d0

Browse files
committed
test: cmd debugging
Signed-off-by: Peter Wilcsinszky <[email protected]>
1 parent 43d108f commit a4f62d0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

e2e/syslog-ng-aggregator/syslog_ng_aggregator_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func init() {
6464
}
6565

6666
func TestSyslogNGIsRunningAndForwardingLogs(t *testing.T) {
67-
ns := "default"
67+
ns := "test"
6868
common.WithCluster("syslog-ng-1", t, func(t *testing.T, c common.Cluster) {
6969
setup.LoggingOperator(t, c, setup.LoggingOperatorOptionFunc(func(options *setup.LoggingOperatorOptions) {
7070
options.Config.DisableWebhook = true
@@ -165,9 +165,11 @@ func TestSyslogNGIsRunningAndForwardingLogs(t *testing.T) {
165165
}))
166166

167167
require.Eventually(t, func() bool {
168-
rawOut, err := exec.Command("kubectl", "-n", consumer.PodKey.Namespace, "logs", consumer.PodKey.Name).Output()
168+
cmd := exec.Command("kubectl", "-n", consumer.PodKey.Namespace, "logs", consumer.PodKey.Name)
169+
cmd.Stderr = os.Stderr
170+
rawOut, err := cmd.Output()
169171
if err != nil {
170-
t.Logf("failed to get log consumer logs: %v", err)
172+
t.Logf("failed to get log consumer logs: %+v %s", err, rawOut)
171173
return false
172174
}
173175
t.Logf("log consumer logs: %s", rawOut)

0 commit comments

Comments
 (0)