Skip to content

Commit b55fca4

Browse files
authored
fix: Increase timeout for streaming logs (#2596)
One second wasn't long enough, and was causing flakes in CI.
1 parent c6b1daa commit b55fca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/workspacebuilds_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func TestWorkspaceBuildLogs(t *testing.T) {
325325
workspace := coderdtest.CreateWorkspace(t, client, user.OrganizationID, template.ID)
326326
ctx, cancelFunc := context.WithCancel(context.Background())
327327
t.Cleanup(cancelFunc)
328-
logs, err := client.WorkspaceBuildLogsAfter(ctx, workspace.LatestBuild.ID, before.Add(-time.Second))
328+
logs, err := client.WorkspaceBuildLogsAfter(ctx, workspace.LatestBuild.ID, before.Add(-time.Hour))
329329
require.NoError(t, err)
330330
for {
331331
log, ok := <-logs

0 commit comments

Comments
 (0)