Update test

This commit is contained in:
Miccah Castorina
2023-07-26 00:36:42 -05:00
parent c6597969eb
commit c0752eae2c
+4 -2
View File
@@ -85,9 +85,11 @@ func TestArchiveHandler(t *testing.T) {
count := 0
re := regexp.MustCompile(testCase.matchString)
matched := false
for chunk := range archiveChan {
var chunk sources.Chunk
for opt := range archiveChan {
count++
if re.Match(chunk) {
opt(&chunk)
if re.Match(chunk.Data) {
matched = true
}
}