Skip to content

Commit

Permalink
fix: increase max size of pact output buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
cltatman committed Aug 7, 2020
1 parent aa6e2d2 commit 2ea979c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dsl/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ func (p *PactClient) VerifyProvider(request types.VerifyRequest) ([]types.Provid
// See https://github.com/pact-foundation/pact-go/issues/88#issuecomment-404686337
stdOutScanner := bufio.NewScanner(stdOutPipe)
go func() {
stdOutBuf := make([]byte, bufio.MaxScanTokenSize)
stdOutScanner.Buffer(stdOutBuf, 64*1024*1024)

for stdOutScanner.Scan() {
verifications = append(verifications, stdOutScanner.Text())
}
Expand Down

0 comments on commit 2ea979c

Please sign in to comment.