This commit is contained in:
redkale
2024-06-05 16:21:06 +08:00
parent 81c6543650
commit 0c61ffbe19

View File

@@ -69,7 +69,7 @@ public class RestSleepTest {
System.out.println("返回结果: " + new String(bytes, 0, pos));
System.out.println("耗时: " + e + " ms");
server.shutdown();
int exptime = Runtime.getRuntime().availableProcessors() > 1 ? 600 : 1100;
int exptime = Runtime.getRuntime().availableProcessors() > 2 ? 600 : 1100;
Assertions.assertTrue(e < exptime);
}
}