Skip to content

Commit

Permalink
add random strings to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Gauci committed Oct 21, 2018
1 parent ffeaf4c commit 157a1a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/ConnectionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,11 @@ TEST_F(FlakyConnectionTest, MultiReadWrite) {
}

TEST_F(ReliableConnectionTest, InvalidClient) {
string junk(16 * 1024 * 1024, 't');
for (int a = 0; a < 128; a++) {
string junk(16 * 1024 * 1024, 't');
for (int b = 0; b < 16 * 1024 * 1024; b++) {
junk[b] = rand() % 256;
}
int fd = clientSocketHandler->connect(endpoint);
int retval =
clientSocketHandler->writeAllOrReturn(fd, &junk[0], junk.length());
Expand Down

0 comments on commit 157a1a6

Please sign in to comment.