Closed JJ closed 7 years ago
Looks like it's not a huge deal: https://github.com/polds/logrus-papertrail-hook/blob/master/papertrail_test.go#L56 its expecting a papertrail host/port combination to be set in the environment which the build does not have.
I'll look into porting it to a self hosted TCP server for the tests.
Made fake tcp request via conn interface https://github.com/polds/logrus-papertrail-hook/pull/5 I think it will be enough. In hook module we shoud test only if fire function works as expected. Testing full tcp/upd connect with sending data is superfluously. There are tests in dial package.
@undiabler that looks good to me, thank you. Merged.
Check it out at https://travis-ci.org/polds/logrus-papertrail-hook/jobs/145635574