Skip to content

Commit

Permalink
#498 Update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nkorange committed Jan 9, 2019
1 parent ec8117d commit 5290c16
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
* @author wangtong.wt
* @date 2018/6/20
*/
//@RunWith(SpringRunner.class)
//@SpringBootTest(classes = NamingApp.class, properties = {"server.servlet.context-path=/nacos"},
// webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@RunWith(SpringRunner.class)
@SpringBootTest(classes = NamingApp.class, properties = {"server.servlet.context-path=/nacos"},
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class RegisterInstance_ITCase {

private NamingService naming;
Expand All @@ -54,14 +54,14 @@ public class RegisterInstance_ITCase {

@Before
public void init() throws Exception {
// if (naming == null) {
// TimeUnit.SECONDS.sleep(10);
// naming = NamingFactory.createNamingService("127.0.0.1" + ":" + port);
// }
if (naming == null) {
TimeUnit.SECONDS.sleep(10);
naming = NamingFactory.createNamingService("127.0.0.1" + ":" + port);
}
}

@Test
// @Ignore
@Ignore
public void regService() throws NacosException, InterruptedException {

Properties properties = new Properties();
Expand Down

0 comments on commit 5290c16

Please sign in to comment.