Skip to content

Commit

Permalink
try to make the e2e be more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Oct 24, 2024
1 parent c5be726 commit e3e6088
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ atest extension --output /usr/local/bin --registry ghcr.io mongodb

echo "start to run server"
nohup atest server --tls-grpc --cert-file test.pem --key-file test.key&
cmd="atest run -p test-suite-common.yaml"
cmd="atest run -p test-suite-common.yaml --request-ignore-error"

echo "start to run testing: $cmd"
kind=orm target=mysql:3306 driver=mysql $cmd
Expand Down
3 changes: 2 additions & 1 deletion e2e/test-suite-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ param:
caseName: "{{randAlpha 6}}"
gRPCSuiteName: "{{randAlpha 6}}"
gRPCCaseName: "{{randAlpha 6}}"
store: "{{randAlpha 3}}"
store: |
{{randAlpha 6}}-{{env "kind"}}
server: |
{{default "http://localhost:8080" (env "SERVER")}}
items:
Expand Down
2 changes: 0 additions & 2 deletions pkg/runner/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ func ammendHeaders(headers http.Header, body []byte) {
if val := headers.Get(util.ContentLength); val == "" {
headers.Add(util.ContentLength, strconv.Itoa(len(body)))
fmt.Printf("add content-length: %d\n", len(body))
} else {
fmt.Printf("content-length already exist: %s\n", val)
}
}

Expand Down

0 comments on commit e3e6088

Please sign in to comment.