8000 chore(agent/agentscripts): increase timeout in TestTimeout by johnstcn · Pull Request #17293 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore(agent/agentscripts): increase timeout in TestTimeout #17293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore(agent/agentscripts): increase timeout in TestTimeout to reduce …
…likelihood of race
  • Loading branch information
johnstcn committed Apr 8, 2025
commit 38e1e5ebf8fd6d024923b5cf48cb2968488293c4
2 changes: 1 addition & 1 deletion agent/agentscripts/agentscripts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestTimeout(t *testing.T) {
err := runner.Init([]codersdk.WorkspaceAgentScript{{
LogSourceID: uuid.New(),
Script: "sleep infinity",
Timeout: time.Millisecond,
Timeout: 100 * time.Millisecond,
}}, aAPI.ScriptCompleted)
require.NoError(t, err)
require.ErrorIs(t, runner.Execute(context.Background(), agentscripts.ExecuteAllScripts), agentscripts.ErrTimeout)
Expand Down
Loading
0