Skip to content

Commit

Permalink
Increase module timeouts
Browse files Browse the repository at this point in the history
Increase timeout for start/shutdown in FileToDatastoreUtilsTest
in order to avoid timeouts during verify jobs.

60 seconds timeout corresponds with default module timeout as
set in ModulesConfig class.

JIRA: LIGHTY-299
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
  • Loading branch information
ihrasko committed Oct 30, 2024
1 parent 187f7f6 commit c4d7940
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import org.testng.annotations.Test;

public class FileToDatastoreUtilsTest {

private static final String INITIAL_CONTAINER_PATH = "/data/container-value-1.json";
private static final String CASE_CONTAINER_PATH = "/data/case-container-value.json";
private static final String OVERRIDE_CONTAINER_PATH = "/data/container-value-2.xml";
Expand Down Expand Up @@ -69,7 +68,7 @@ public class FileToDatastoreUtilsTest {
NodeIdentifier.create(SampleContainer.QNAME),
NodeIdentifier.create(YangModuleInfoImpl.qnameOf("value")));

private static final long TIMEOUT_MILLIS = 20_000;
private static final long TIMEOUT_MILLIS = 60_000;

private LightyController lightyController;
private DataBroker dataBroker;
Expand All @@ -85,8 +84,8 @@ public void startUp() throws Exception {
}

@AfterClass
public void tearDown() throws Exception {
assertTrue(lightyController.shutdown().get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS));
public void tearDown() {
assertTrue(lightyController.shutdown(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS));
}

@Test
Expand Down

0 comments on commit c4d7940

Please sign in to comment.