Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e673cc

Browse files
authored
test: Increase timeouts to reduce flakes (#2406)
It's difficult to understand what's timing out due to a lockvs. taking a long time. This should help resolve! 🕵️
1 parenta95d9b1 commit5e673cc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎.github/workflows/coder.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
run:gotestsum --junitfile="gotests.xml" --packages="./..." --
210210
-covermode=atomic -coverprofile="gotests.coverage"
211211
-coverpkg=./...,github.com/coder/coder/codersdk
212-
-timeout=3m -count=$GOCOUNT -short -failfast
212+
-timeout=5m -count=$GOCOUNT -short -failfast
213213

214214
-name:Upload DataDog Trace
215215
if:always() && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
@@ -316,7 +316,7 @@ jobs:
316316
deploy:
317317
name:"deploy"
318318
runs-on:ubuntu-latest
319-
timeout-minutes:20
319+
timeout-minutes:30
320320
if:github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
321321
permissions:
322322
contents:read

‎Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test: test-clean
115115
.PHONY: test-postgres
116116
test-postgres: test-clean
117117
DB=ci gotestsum --junitfile="gotests.xml" --packages="./..." --\
118-
-covermode=atomic -coverprofile="gotests.coverage" -timeout=5m\
118+
-covermode=atomic -coverprofile="gotests.coverage" -timeout=10m\
119119
-coverpkg=./...,github.com/coder/coder/codersdk\
120120
-count=1 -parallel=1 -race -failfast
121121

‎cli/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestServer(t *testing.T) {
5656
assert.NoError(t,err)
5757
client=codersdk.New(accessURL)
5858
returntrue
59-
},15*time.Second,25*time.Millisecond)
59+
},time.Minute,50*time.Millisecond)
6060
_,err=client.CreateFirstUser(ctx, codersdk.CreateFirstUserRequest{
6161
Email:"some@one.com",
6262
Username:"example",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp