Merge "adb: add test for flushing socket data after a write failure."