Hi. Note that for the purposes of fixing the bug it would be enough if you refactor the test to assume that the internet connection would never succeed, i.e. you can save the connection altogether and do as if it always failed. If this results in a test which does nothing, then you could just skip the test.
Thanks.