nettest: break on unexpected error

in the resyncConn, break the read loop on read error.
if error is returned, constantly, and the loop is not breaking,
the test will never finish.
continue to fail the test on this unexpected error is also pointless.

Change-Id: I8f2f5e7b3d37c2a194cbdcde51734580f5b2436d
Reviewed-on: https://go-review.googlesource.com/41332
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 file changed