Skip to content

Commit

Permalink
remove rows test param
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyu511 committed Jun 21, 2017
1 parent 541864b commit 91355dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
script: mvn clean test-compile test -Dbinlog.user=root -Dbinlog.host=127.0.0.1 -Dbinlog.port=3306 -Dbinlog.schema=binlog_test
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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());
Expand Down

0 comments on commit 91355dc

Please sign in to comment.