Fixes test_lost_connection

 - Floats can't be compared with == or !=
Merge pull request #2183 from lukecampbell/fixes

Fixes test_lost_connection