Skip to content

Commit e703fd4

Browse files
committed
one more
1 parent a474ffd commit e703fd4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scaletest/reconnectingpty/run_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,18 @@ func Test_Runner(t *testing.T) {
200200
Init: workspacesdk.AgentReconnectingPTYInit{
201201
Command: "echo 'hello world'; sleep 1",
202202
},
203-
ExpectOutput: "hello world",
204-
LogOutput: false,
203+
LogOutput: true,
205204
})
206205

207206
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitSuperLong)
208207
defer cancel()
209208

210209
logs := bytes.NewBuffer(nil)
211210
err := runner.Run(ctx, "1", logs)
212-
logStr := logs.String()
213-
t.Log("Runner logs:\n\n" + logStr)
211+
require.NoError(t, err)
212+
213+
tr := testutil.NewTerminalReader(t, logs)
214+
err = tr.ReadUntilString(ctx, "hello world")
214215
require.NoError(t, err)
215216
})
216217

0 commit comments

Comments
 (0)