test: retry on smartos if ECONNREFUSED
authorRich Trott <rtrott@gmail.com>
Fri, 20 Nov 2015 18:15:31 +0000 (10:15 -0800)
committerJames M Snell <jasnell@gmail.com>
Wed, 23 Dec 2015 16:38:33 +0000 (08:38 -0800)
commitff2266a3deb59ca65c4c6ddaae99e6940d009325
tree705e94632fd2e8d8a9c5fa18eb42571c654e5f3c
parent9b41e7ef758ac4a9269b7b8bec223b20ecb313ce
test: retry on smartos if ECONNREFUSED

SmartOS has a bug that causes unexpected ECONNREFUSED errors.

See https://smartos.org/bugview/OS-2767

If ECONNREFUSED on SmartOS, retry the test one time.

Fixes: https://github.com/nodejs/node/issues/3864
Fixes: https://github.com/nodejs/node/issues/2815
PR-URL: https://github.com/nodejs/node/pull/3941
Reviewed-By: Fedor Indutny <fedor@indutny.com>
tools/test.py