Skip to content

Commit a5408c5

Browse files
committed
Improved oraStuckTimeout test
1 parent ae96de9 commit a5408c5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/test/java/org/utplsql/maven/plugin/UtPlsqlMojoTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ public void skip_utplsql_tests() throws Exception {
268268
}
269269

270270
/**
271-
* Enable DBMS_OUTPUT
271+
* Set ORA Stuck Timeout
272272
* <p>
273-
* Given : a pom.xml with dbmsOutput=true
273+
* Given : a pom.xml with oraStuckTimeout=0
274274
* When : pom is read
275275
* Then : Property is set
276276
*/
@@ -280,8 +280,9 @@ public void ora_stuck_timeout() throws Exception {
280280
assertNotNull(utPlsqlMojo);
281281

282282
utPlsqlMojo.execute();
283-
}
284283

284+
assertEquals(Integer.valueOf(5), utPlsqlMojo.oraStuckTimeout);
285+
}
285286

286287
/**
287288
* Ora Stuck Timeout

src/test/resources/unit-tests/ora_stuck_timeout/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<goal>test</goal>
2626
</goals>
2727
<configuration>
28-
<oraStuckTimeout>0</oraStuckTimeout>
28+
<oraStuckTimeout>5</oraStuckTimeout>
2929
<ignoreFailure>false</ignoreFailure>
3030
<paths>
3131
<path>app</path>

0 commit comments

Comments
 (0)