Skip to content

Commit 60cee41

Browse files
committed
Enabled assertions during tests
1 parent 8fd4c13 commit 60cee41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ limitations under the License.
267267
<target name="test" depends="compile">
268268
<testng classpathref="classpath" outputdir="${testdir}" listeners="com.mongodb.util.TestNGListener" haltonfailure="true" >
269269
<jvmarg value="-Xmx512M" />
270+
<jvmarg value="-ea" />
270271
<jvmarg value="-Dcom.mongodb.slaveAcceptableLatencyMS=${test.com.mongodb.slaveAcceptableLatencyMS}"/>
271272

272273
<xmlfileset dir="." includes="testng.xml"/>
@@ -289,6 +290,7 @@ limitations under the License.
289290

290291
<testng classpathref="classpath" outputdir="${testdir}" haltonfailure="true" verbose="1" listeners="com.mongodb.util.TestNGListener" >
291292
<jvmarg value="-Xmx512M" />
293+
<jvmarg value="-ea" />
292294
<jvmarg value="-Dcom.mongodb.slaveAcceptableLatencyMS=${test.com.mongodb.slaveAcceptableLatencyMS}"/>
293295
<xmlfileset dir="build/test" includes="testng-single.xml"/>
294296
</testng>
@@ -369,6 +371,7 @@ limitations under the License.
369371

370372
<testng classpathref="classpath.clover" outputdir="${testdir}" listeners="com.mongodb.util.TestNGListener" haltonfailure="false" verbose="1">
371373
<jvmarg value="-Xmx512M" />
374+
<jvmarg value="-ea" />
372375
<jvmarg value="-Dcom.mongodb.slaveAcceptableLatencyMS=${test.com.mongodb.slaveAcceptableLatencyMS}"/>
373376
<xmlfileset dir="." includes="testng.xml"/>
374377
</testng>

0 commit comments

Comments
 (0)