Skip to content

Commit

Permalink
Fix output_test
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinguidee committed Dec 10, 2023
1 parent c5b87d6 commit a068f5e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ func TestOutputTextFile(t *testing.T) {
defer file.Close()
defer os.Remove(file.Name())

output := &OutputTextFile{}
output.file = file
output := &OutputFile{
file: file,
format: LogFormatText,
}
output.print(line)

content, err := os.ReadFile(file.Name())
Expand All @@ -68,8 +70,10 @@ func TestOutputJsonFile(t *testing.T) {
defer file.Close()
defer os.Remove(file.Name())

output := &OutputJsonFile{}
output.file = file
output := &OutputFile{
file: file,
format: LogFormatJson,
}
output.print(line)

content, err := os.ReadFile(file.Name())
Expand Down

0 comments on commit a068f5e

Please sign in to comment.