Don't spin the CPU so much in tests

This commit is contained in:
Norman Maurer 2013-01-04 07:05:53 +01:00
parent 712a6cfe8f
commit bd093c4ab0
9 changed files with 16 additions and 16 deletions

View File

@ -109,7 +109,7 @@ public class SctpEchoTest extends AbstractSctpTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}
@ -124,7 +124,7 @@ public class SctpEchoTest extends AbstractSctpTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}

View File

@ -82,7 +82,7 @@ public class SocketEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}
@ -97,7 +97,7 @@ public class SocketEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}

View File

@ -84,7 +84,7 @@ public class SocketFileRegionTest extends AbstractSocketTest {
}
try {
Thread.sleep(10);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}

View File

@ -84,7 +84,7 @@ public class SocketFixedLengthEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}
@ -99,7 +99,7 @@ public class SocketFixedLengthEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}

View File

@ -94,7 +94,7 @@ public class SocketObjectEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}
@ -109,7 +109,7 @@ public class SocketObjectEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}

View File

@ -209,7 +209,7 @@ public class SocketSpdyEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}

View File

@ -109,7 +109,7 @@ public class SocketSslEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}
@ -124,7 +124,7 @@ public class SocketSslEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}

View File

@ -103,7 +103,7 @@ public class SocketStartTlsTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}
@ -118,7 +118,7 @@ public class SocketStartTlsTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}

View File

@ -97,7 +97,7 @@ public class SocketStringEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}
@ -112,7 +112,7 @@ public class SocketStringEchoTest extends AbstractSocketTest {
}
try {
Thread.sleep(1);
Thread.sleep(50);
} catch (InterruptedException e) {
// Ignore.
}