diff --git a/src/test/java/org/cloud/sonic/core/ios/IOSDriverTest.java b/src/test/java/org/cloud/sonic/core/ios/IOSDriverTest.java index 6d44ce3..a0b387e 100644 --- a/src/test/java/org/cloud/sonic/core/ios/IOSDriverTest.java +++ b/src/test/java/org/cloud/sonic/core/ios/IOSDriverTest.java @@ -34,6 +34,11 @@ 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) {