OSDN Git Service

Fix flaky EagerReaderTest.test_large_data_multibyte
authorAndre Eisenbach <eisenbach@google.com>
Fri, 20 Nov 2015 19:41:16 +0000 (11:41 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 20 Nov 2015 19:50:51 +0000 (11:50 -0800)
commitb74ef9323325068f43e7f7765cd8b858881ab197
tree032810b0eb41a8d14b96f83c5a0a0f85bbd40899
parent6babef04564490d0843504f7abe9f5217570f5ef
Fix flaky EagerReaderTest.test_large_data_multibyte

eager_reader_read() makes no guarantee that the number of bytes read
equals the number of bytes to be read. Insisting that it must in the
test can lead to race conditions where not all data is read at once and
the test fails.

Adjusted test to match API promise.

Change-Id: I5df4b6d8df61d0601402511bb3d9f29f22378981
osi/test/eager_reader_test.cpp