Skip to content

Commit 7868d8d

Browse files
committed
resolve comments
1 parent ba24c52 commit 7868d8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jvm-packages/xgboost4j/src/test/java/ml/dmlc/xgboost4j/java/DMatrixTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ public void testCreateFromDataIteratorWithDiffFeatureSize() throws XGBoostError
7575
blist.add(p);
7676
labelall.add(p.label());
7777
}
78+
boolean success = true;
7879
try {
7980
DMatrix dmat = new DMatrix(blist.iterator(), null);
8081
} catch (XGBoostError e) {
81-
82+
success = false;
8283
}
84+
TestCase.assertTrue(success == false);
8385
}
8486

8587
@Test

0 commit comments

Comments
 (0)