Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewi committed Oct 16, 2024
1 parent 23218a5 commit ca3ed4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/pkg/analyze/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func initOffsets(logOffsetsFile string) (*logspb.LogsWaterMark, error) {
watermark := &logspb.LogsWaterMark{}

if err := protojson.Unmarshal(raw, watermark); err != nil {
log.Error(err, "Failed to unmarshal watermarks file %s; watermarks will be reinitialized", logOffsetsFile)
log.Error(err, "Failed to unmarshal watermarks; watermarks will be reinitialized", "file", logOffsetsFile)
}
return watermark, nil
}
Expand Down
5 changes: 3 additions & 2 deletions app/pkg/analyze/analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,9 @@ func Test_CombineGenerateEntries(t *testing.T) {

c.logFunc(zTestLog)

testLog.Sync()

if err := testLog.Sync(); err != nil {
t.Fatalf("Failed to sync log: %v", err)
}
}

for _, logFile := range logFiles {
Expand Down

0 comments on commit ca3ed4b

Please sign in to comment.