Skip to content

Commit

Permalink
just use golden.assertbytes directly
Browse files Browse the repository at this point in the history
  • Loading branch information
dropwhile committed Aug 16, 2023
1 parent 96a5e7d commit 6dba785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestLoggerMsgs(t *testing.T) {
}

goldenFixture := fmt.Sprintf("test_logger_msgs.%s.golden", name)
assert.Check(t, golden.Bytes(buf.Bytes(), goldenFixture), "%s: did not match expectation", name)
golden.AssertBytes(t, buf.Bytes(), goldenFixture, "%s: did not match expectation", name)
}

}
Expand Down Expand Up @@ -173,6 +173,6 @@ func TestPanics(t *testing.T) {
}

goldenFixture := fmt.Sprintf("test_logger_msgs.%s.golden", name)
assert.Check(t, golden.Bytes(buf.Bytes(), goldenFixture), "%s: did not match expectation", name)
golden.AssertBytes(t, buf.Bytes(), goldenFixture, "%s: did not match expectation", name)
}
}

0 comments on commit 6dba785

Please sign in to comment.