File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/test/java/io/vertx/ext/binlog/mysql Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments