Skip to content

Commit

Permalink
Update e2e test splitter regex
Browse files Browse the repository at this point in the history
Signed-off-by: Per Goncalves da Silva <[email protected]>
  • Loading branch information
Per Goncalves da Silva committed Nov 19, 2024
1 parent 0a0cd4d commit d76ccad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/split/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ func createChunkRegexp(numChunks, printChunk int, specs []string) (string, error
reStr = fmt.Sprintf("%s .*", chunk[0])
} else {
sb := strings.Builder{}
sb.WriteString(chunk[0])
sb.WriteString(fmt.Sprintf("^%s", chunk[0]))
for _, test := range chunk[1:] {
sb.WriteString("|")
sb.WriteString(test)
sb.WriteString(fmt.Sprintf("^%s", test))
}
reStr = fmt.Sprintf("(%s) .*", sb.String())
}
Expand Down

0 comments on commit d76ccad

Please sign in to comment.