Running main() from ./googletest/src/gtest_main.cc
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from M
[ RUN      ] M.ErrorWhenFailed
ERROR: connection failed (expected)
FAILED to reach upstream, 2 failed attempts
[       OK ] M.ErrorWhenFailed (0 ms)
[----------] 1 test from M (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (0 ms total)
[  PASSED  ] 1 test.
