This commit is contained in:
redkale
2024-06-05 16:18:38 +08:00
parent 31cd2163e5
commit 81c6543650

View File

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