Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d599851

Browse files
committed
fix
1 parent ec429fb commit d599851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/agent_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ func TestAgent_Metadata(t *testing.T) {
914914
dir := t.TempDir()
915915
const reportInterval = 2
916916
greetingPath := filepath.Join(dir, "greeting")
917-
script := "echo hello | tee " + greetingPath
917+
script := "echo hello | tee -a " + greetingPath
918918
_, client, _, _, _ := setupAgent(t, agentsdk.Manifest{
919919
Metadata: []codersdk.WorkspaceAgentMetadataDescription{
920920
{
@@ -953,7 +953,7 @@ func TestAgent_Metadata(t *testing.T) {
953953
lowerBound = (int(idealNumGreetings) / 2)
954954
)
955955

956-
if idealNumGreetings < 10 {
956+
if idealNumGreetings < 5 {
957957
// Not enough time has passed to get a good sample size.
958958
continue
959959
}

0 commit comments

Comments
 (0)