Commit fb1fce2
authored
acc: do not fail the test if testserver failed to read the body (#3589)
This happens sometimes
```
=== FAIL: acceptance TestAccept/bundle/upload/internal_server_error/DATABRICKS_CLI_DEPLOYMENT=direct-exp (0.05s)
acceptance_test.go:1328: No effective updates from BundleConfig.default_name
server.go:59: Failed to read request body: unexpected EOF
```
Reproducible with:
`go test ./acceptance -run
^TestAccept$/^bundle$/^upload$/^internal_server_error$ -v -count=100
-failfast`
The issue started after disabling rate limit in acc tests
#3581
if I restore the rate limit, it does not fail even without this patch:
`DATABRICKS_RATE_LIMIT=15 go test ./acceptance -run
^TestAccept$/^bundle$/^upload$/^internal_server_error$/direct -v
-count=100 -failfast` succeeds.1 parent f439a5c commit fb1fce2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments