honeycombio / libhoney-rb

Ruby library for sending data to Honeycomb
Apache License 2.0
11 stars 30 forks source link

add test for closing transmission when no threads have been started #76

Closed robbkidd closed 3 years ago

robbkidd commented 3 years ago

A test for #74.

If the libhoney client is instantiated, but never started or an event is not added, on process exit transmission throws an error when closing.

NoMethodError (undefined method `join' for nil:NilClass) in 'close'

This behavior was seen in a Rails application running rake tasks that initialize the entire app, but does not start or queue any events before the process exits.