Skip to content

Commit c106b3d

Browse files
authored
test: fix e2e test unstable (#800)
1 parent 52c1e65 commit c106b3d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/test/e2e/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func APISIXHTTPSExpect(t *testing.T) *httpexpect.Expect {
9494
return e
9595
}
9696

97-
var sleepTime = time.Duration(50) * time.Millisecond
97+
var sleepTime = time.Duration(100) * time.Millisecond
9898

9999
type HttpTestCase struct {
100100
caseDesc string

api/test/e2e/upstream_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func TestUpstream_Create(t *testing.T) {
6262
}`,
6363
Headers: map[string]string{"Authorization": token},
6464
ExpectStatus: http.StatusOK,
65+
Sleep: sleepTime,
6566
},
6667
{
6768
caseDesc: "hit the route just created",

0 commit comments

Comments
 (0)