Permalink
Browse files

Increase buffer size (#351)

* Increase buffer size

* Increase buffer to 1024
  • Loading branch information...
pysysops authored and aelsabbahy committed May 21, 2018
1 parent b4d964d commit 6f0b489a43f445ee8c1c7ac969de5aa1fdbce04e
Showing with 5 additions and 0 deletions.
  1. +5 −0 resource/validate.go
View
@@ -25,6 +25,10 @@ const (
SKIP
)
const (
maxScanTokenSize = 1024 * 1024
)
type TestResult struct {
Successful bool `json:"successful" yaml:"successful"`
ResourceId string `json:"resource-id" yaml:"resource-id"`
@@ -306,6 +310,7 @@ func ValidateContains(res ResourceRead, property string, expectedValues []string
}()
scanner := bufio.NewScanner(fh)
scanner.Buffer(nil, maxScanTokenSize)
var found []patternMatcher
for scanner.Scan() {
line := scanner.Text()

0 comments on commit 6f0b489

Please sign in to comment.