Skip to content

Commit

Permalink
chore: use buffer.String() instead of string(buffer.Bytes())
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Nov 16, 2023
1 parent 99d496c commit c53e497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unmarshaller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestUnmarshalListOfStructsAfterMarshal(t *testing.T) {
t.Fatalf("Error marshalling data to CSV: %#v", err)
}

if string(buffer.Bytes()) != "Additional|Key\nnull|test\n" {
if buffer.String() != "Additional|Key\nnull|test\n" {
t.Fatalf("Marshalled data had an unexpected form of %s", buffer.Bytes())
}

Expand Down

0 comments on commit c53e497

Please sign in to comment.