Skip to content

Commit

Permalink
tests: Handle connection reset by peer error when triggering failpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
  • Loading branch information
serathius committed Dec 2, 2022
1 parent 655ff72 commit 64e37a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/linearizability/failpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ func setupGoFailpoint(host, failpoint, payload string) error {
}
resp, err := httpClient.Do(r)
if err != nil {
if strings.Contains(err.Error(), "connection reset by peer") {
return nil
}
return err
}
defer resp.Body.Close()
Expand Down

0 comments on commit 64e37a1

Please sign in to comment.