Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 1c8b846

Browse files
author
Nikhil Bhoski
committed
setting the timeout for tests
1 parent d919dae commit 1c8b846

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/resources/config.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Builder.matlab.test.support.error = To run tests with the Jenkins plugin, use MA
1212
builder.matlab.automatictestoption.display.name = Automatic
1313
builder.matlab.customcommandoption.display.name = Custom
1414
Releaseinfo.matlab.version.not.found.error = Error finding MATLAB release for given MATLAB root. Verify MATLAB root path.
15-
matlab.not.found.error = Error finding MATLAB at given location. Verify MATLAB root path.
15+
matlab.not.found.error = Unable to launch MATLAB from the specified location. Verify the path to MATLAB root folder.
1616
Builder.matlab.modelcoverage.support.warning = To generate a Cobertura model coverage report, use MATLAB R2018b or a newer release.
1717
Builder.matlab.exportstmresults.support.warning = To export Simulink Test Manager results, use MATLAB R2019a or a newer release.
1818
Builder.matlab.runner.script.target.file.linux.name = run_matlab_command.sh

src/test/java/com/mathworks/ci/RunMatlabCommandBuilderTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.junit.BeforeClass;
2222
import org.junit.Rule;
2323
import org.junit.Test;
24+
import org.junit.rules.Timeout;
2425
import org.jvnet.hudson.test.JenkinsRule;
2526
import hudson.EnvVars;
2627
import hudson.matrix.Axis;
@@ -47,6 +48,9 @@ public class RunMatlabCommandBuilderTest {
4748

4849
@Rule
4950
public JenkinsRule jenkins = new JenkinsRule();
51+
52+
@Rule
53+
public Timeout globalTimeout = Timeout.seconds(500);
5054

5155
@BeforeClass
5256
public static void classSetup() throws URISyntaxException, IOException {

0 commit comments

Comments
 (0)