Skip to content

Commit

Permalink
补充部分单测3
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Jul 24, 2022
1 parent 6768eef commit 61d1c87
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/java/org/cloud/sonic/core/ios/IOSDriverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ public static Object[][] data() {

@BeforeClass
public static void before() throws InterruptedException, SonicRespException {
try {
iosDriver.lock();
} catch (SonicRespException e) {
Assert.assertEquals(e.getMessage(), "sessionId not found.");
}
try {
new IOSDriver("http://localhost:8100", null);
} catch (SonicRespException e) {
Expand Down Expand Up @@ -110,5 +105,10 @@ public void testLock() throws SonicRespException {
@AfterClass
public static void after() throws SonicRespException {
iosDriver.closeDriver();
try {
iosDriver.lock();
} catch (SonicRespException e) {
Assert.assertEquals(e.getMessage(), "sessionId not found.");
}
}
}

0 comments on commit 61d1c87

Please sign in to comment.