Skip to content

Commit c4395b8

Browse files
committed
test/e2e: Add more debug message in TestJobControl
This test is flaky. Let's try to add more info to find out what wrong with it.
1 parent 23b5cc0 commit c4395b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/e2e/integration_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,13 @@ func TestJobControl(t *testing.T) {
364364
if _, err := p.Write(time.Second, []byte{0x03}); err != nil {
365365
t.Fatalf("error exit: %v", err)
366366
}
367+
if logs, err := p.Logs(); err != nil {
368+
t.Logf("failed to read output: %s", err)
369+
} else {
370+
t.Logf("output: %s", logs)
371+
}
367372

368-
if err := d.WaitTimeout(ctx, 3*time.Second); err != nil {
373+
if err := d.WaitTimeout(ctx, 10*time.Second); err != nil {
369374
t.Fatalf("WaitTimeout failed: %v", err)
370375
}
371376

0 commit comments

Comments
 (0)