Skip to content

Commit

Permalink
Fix CI ERROR (apache#17695)
Browse files Browse the repository at this point in the history
  • Loading branch information
galaxylqx committed May 19, 2022
1 parent 40f1eb9 commit 0edbcfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void assertRangeDoShardingWithWrongArgumentForStartOffset() {
@Test(expected = IllegalArgumentException.class)
public void assertRangeDoShardingWithWrongArgumentForStopOffset() {
Properties properties = createZeroPaddingProperties();
properties.setProperty("stop-offset", "-2");
properties.setProperty("stop-offset", "-1");
ModShardingAlgorithm algorithm = (ModShardingAlgorithm) ShardingAlgorithmFactory.newInstance(new ShardingSphereAlgorithmConfiguration("MOD", properties));
assertThat(algorithm.doSharding(createAvailableIncludeZeroTargetNames(), new PreciseShardingValue<>("t_order", "order_id", DATA_NODE_INFO, "12345678910111213141516")), is("t_order_07"));
}
Expand Down

0 comments on commit 0edbcfe

Please sign in to comment.