From 91355dc7c593edb5bb8846215f85ec52042d50dd Mon Sep 17 00:00:00 2001 From: guoyu Date: Wed, 21 Jun 2017 09:52:02 +0800 Subject: [PATCH] remove rows test param --- .travis.yml | 2 +- .../java/io/vertx/ext/binlog/mysql/BinlogClientTestBase.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1325585..c02bd46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,4 +13,4 @@ before_install: - sudo sed -i '/\[mysqld\]/a server_id=1' /etc/mysql/my.cnf - sudo service mysql restart - mysql -e 'CREATE DATABASE IF NOT EXISTS binlog_test;' -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 \ No newline at end of file +script: mvn clean test-compile test -Dbinlog.user=root -Dbinlog.host=127.0.0.1 -Dbinlog.port=3306 -Dbinlog.schema=binlog_test \ No newline at end of file diff --git a/src/test/java/io/vertx/ext/binlog/mysql/BinlogClientTestBase.java b/src/test/java/io/vertx/ext/binlog/mysql/BinlogClientTestBase.java index f222c50..7880245 100644 --- a/src/test/java/io/vertx/ext/binlog/mysql/BinlogClientTestBase.java +++ b/src/test/java/io/vertx/ext/binlog/mysql/BinlogClientTestBase.java @@ -39,6 +39,8 @@ public class BinlogClientTestBase extends VertxTestBase { protected Logger logger = LoggerFactory.getLogger(getClass()); + private static final int ROWS = 1000; + @BeforeClass public static void init() throws Exception { conn = DriverManager.getConnection( @@ -48,7 +50,7 @@ public static void init() throws Exception { ); rows = IntStream .iterate(1, i -> i + 1) - .limit(Integer.parseInt(System.getProperty("binlog.rows", "100"))) + .limit(ROWS) .boxed() .map(i -> new AbstractMap.SimpleEntry<>(i, UUID.randomUUID().toString())) .collect(Collectors.toList());