Skip to content

Commit 91355dc

Browse files
committed
remove rows test param
1 parent 541864b commit 91355dc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ before_install:
1313
- sudo sed -i '/\[mysqld\]/a server_id=1' /etc/mysql/my.cnf
1414
- sudo service mysql restart
1515
- mysql -e 'CREATE DATABASE IF NOT EXISTS binlog_test;'
16-
script: mvn clean test-compile test -Dbinlog.user=root -Dbinlog.host=127.0.0.1 -Dbinlog.port=3306 -Dbinlog.schema=binlog_test -Dbinlog.rows=100
16+
script: mvn clean test-compile test -Dbinlog.user=root -Dbinlog.host=127.0.0.1 -Dbinlog.port=3306 -Dbinlog.schema=binlog_test

src/test/java/io/vertx/ext/binlog/mysql/BinlogClientTestBase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public class BinlogClientTestBase extends VertxTestBase {
3939

4040
protected Logger logger = LoggerFactory.getLogger(getClass());
4141

42+
private static final int ROWS = 1000;
43+
4244
@BeforeClass
4345
public static void init() throws Exception {
4446
conn = DriverManager.getConnection(
@@ -48,7 +50,7 @@ public static void init() throws Exception {
4850
);
4951
rows = IntStream
5052
.iterate(1, i -> i + 1)
51-
.limit(Integer.parseInt(System.getProperty("binlog.rows", "100")))
53+
.limit(ROWS)
5254
.boxed()
5355
.map(i -> new AbstractMap.SimpleEntry<>(i, UUID.randomUUID().toString()))
5456
.collect(Collectors.toList());

0 commit comments

Comments
 (0)