fix #7695, solve the problem of Address already in use in ConfigTest#testDubboProtocolPortOverride

This commit is contained in:
Xiong, Pin 2021-05-07 16:26:06 +08:00 committed by GitHub
parent 3a3d0ef50e
commit ca0b982866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ public class ConfigTest {
@Test
public void testDubboProtocolPortOverride() throws Exception {
int port = 55555;
int port = NetUtils.getAvailablePort();
System.setProperty("dubbo.protocol.dubbo.port", String.valueOf(port));
ServiceConfig<DemoService> service = null;
DubboBootstrap bootstrap = null;