mozilla/browserid — pull request #3912 by mohit-agarwal (2013-09-24 11:20:22+00:00)
Title: Test fails on tests/post-limiting-test.js (on some combinations of distro/kernel/nodejs version)

In ubuntu version 12.04.2/12.04.3 , I see that sometimes (but not always) ECONNRESET is returned instead of 'socket hang up' .

So 'tests/post-limiting-test.js' needs to be edited to expect either 'socket hang up' or ECONNRESET. Then only will it be able to pass all the tests. For purposes of the test, changing the test to accept either failure message is fine.

So I edited the line 70 of the 'tests/post-limiting-test.js' as:
assert.ok(/Error: (socket hang up|read ECONNRESET)/.test(err.toString()));

This will ensure that the post-limiting-test.js is passed.