Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions pkg/logging/bracket_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,12 @@ func TestBracketWriter_MultipleLines(t *testing.T) {
}

expected := []string{"line one", "line two", "line three"}
for i, line := range lines {
matches := timestampRe.FindStringSubmatch(line)
for i, want := range expected {
matches := timestampRe.FindStringSubmatch(lines[i])
if len(matches) != 3 {
t.Errorf("line %d did not match format: %q", i, line)
continue
}
if matches[2] != expected[i] {
t.Errorf("line %d: expected %q, got %q", i, expected[i], matches[2])
t.Errorf("line %d did not match format: %q", i, lines[i])
} else if matches[2] != want {
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
t.Errorf("line %d: expected %q, got %q", i, want, matches[2])
}
}
}
Expand Down