From 4bf51052cc225f94345f52e729939d62d8c84d16 Mon Sep 17 00:00:00 2001 From: SSpirits Date: Fri, 20 Oct 2023 20:45:42 +0800 Subject: [PATCH] fix(proxy): relax the long polling timeout limit in unit test Signed-off-by: SSpirits --- .../rocketmq/proxy/service/SuspendPopRequestServiceTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy/src/test/java/com/automq/rocketmq/proxy/service/SuspendPopRequestServiceTest.java b/proxy/src/test/java/com/automq/rocketmq/proxy/service/SuspendPopRequestServiceTest.java index d2390d363..31263b172 100644 --- a/proxy/src/test/java/com/automq/rocketmq/proxy/service/SuspendPopRequestServiceTest.java +++ b/proxy/src/test/java/com/automq/rocketmq/proxy/service/SuspendPopRequestServiceTest.java @@ -52,7 +52,9 @@ public static void setUpAll() throws Exception { Field field = ConfigurationManager.class.getDeclaredField("configuration"); field.setAccessible(true); Configuration configuration = new Configuration(); - configuration.setProxyConfig(new ProxyConfig()); + ProxyConfig config = new ProxyConfig(); + config.setGrpcClientConsumerMinLongPollingTimeoutMillis(0); + configuration.setProxyConfig(config); field.set(null, configuration); }