We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a474ffd commit e703fd4Copy full SHA for e703fd4
scaletest/reconnectingpty/run_test.go
@@ -200,17 +200,18 @@ func Test_Runner(t *testing.T) {
200
Init: workspacesdk.AgentReconnectingPTYInit{
201
Command: "echo 'hello world'; sleep 1",
202
},
203
- ExpectOutput: "hello world",
204
- LogOutput: false,
+ LogOutput: true,
205
})
206
207
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitSuperLong)
208
defer cancel()
209
210
logs := bytes.NewBuffer(nil)
211
err := runner.Run(ctx, "1", logs)
212
- logStr := logs.String()
213
- t.Log("Runner logs:\n\n" + logStr)
+ require.NoError(t, err)
+
+ tr := testutil.NewTerminalReader(t, logs)
214
+ err = tr.ReadUntilString(ctx, "hello world")
215
require.NoError(t, err)
216
217
0 commit comments