Skip to content

Commit d76ccad

Browse files
author
Per Goncalves da Silva
committed
Update e2e test splitter regex
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 0a0cd4d commit d76ccad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/split/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ func createChunkRegexp(numChunks, printChunk int, specs []string) (string, error
165165
reStr = fmt.Sprintf("%s .*", chunk[0])
166166
} else {
167167
sb := strings.Builder{}
168-
sb.WriteString(chunk[0])
168+
sb.WriteString(fmt.Sprintf("^%s", chunk[0]))
169169
for _, test := range chunk[1:] {
170170
sb.WriteString("|")
171-
sb.WriteString(test)
171+
sb.WriteString(fmt.Sprintf("^%s", test))
172172
}
173173
reStr = fmt.Sprintf("(%s) .*", sb.String())
174174
}

0 commit comments

Comments
 (0)