mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
test: Fix scaletest/reconnectingpty commands for use in powershell (#5439)
This commit is contained in:
@@ -31,7 +31,8 @@ func Test_Runner(t *testing.T) {
|
||||
runner := reconnectingpty.NewRunner(client, reconnectingpty.Config{
|
||||
AgentID: agentID,
|
||||
Init: codersdk.ReconnectingPTYInit{
|
||||
Command: "echo 'hello world' && sleep 1",
|
||||
// Use ; here because it's powershell compatible (vs &&).
|
||||
Command: "echo 'hello world'; sleep 1",
|
||||
},
|
||||
LogOutput: true,
|
||||
})
|
||||
@@ -195,7 +196,7 @@ func Test_Runner(t *testing.T) {
|
||||
runner := reconnectingpty.NewRunner(client, reconnectingpty.Config{
|
||||
AgentID: agentID,
|
||||
Init: codersdk.ReconnectingPTYInit{
|
||||
Command: "echo 'hello world' && sleep 1",
|
||||
Command: "echo 'hello world'; sleep 1",
|
||||
},
|
||||
ExpectOutput: "hello world",
|
||||
LogOutput: false,
|
||||
@@ -219,7 +220,7 @@ func Test_Runner(t *testing.T) {
|
||||
runner := reconnectingpty.NewRunner(client, reconnectingpty.Config{
|
||||
AgentID: agentID,
|
||||
Init: codersdk.ReconnectingPTYInit{
|
||||
Command: "echo 'hello world' && sleep 1",
|
||||
Command: "echo 'hello world'; sleep 1",
|
||||
},
|
||||
ExpectOutput: "bello borld",
|
||||
LogOutput: false,
|
||||
|
||||
Reference in New Issue
Block a user