Skip to content

Commit

Permalink
test: fixed env property names
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Jun 30, 2022
1 parent 1d1db5b commit 3d7506d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ void testPreparedStatement() throws Exception {
private static class QueryRunnable implements Callable<Integer> {

private final HikariDataSource ds;
private final int minQty = intProperty("query-min-quantity", 10);
private final int maxQty = intProperty("query-max-quantity", 20);
private final int minQty = intProperty("query.min.quantity", 10);
private final int maxQty = intProperty("query.max.quantity", 20);
private final int iterations = intProperty("iterations", 100);

public QueryRunnable(HikariDataSource ds) {
Expand Down Expand Up @@ -146,7 +146,7 @@ private void populateDatabase() throws SQLException {
Random random = new Random();
Connection connection = connection(POSTGRESQL);
int rowCount = intProperty("rows", 100);
int maxQty = intProperty("max-quantity", 1000);
int maxQty = intProperty("max.quantity", 1000);
int batchSize = intProperty("batch", 10000);
String insertOrderSQL = "INSERT INTO orders VALUES (?, ?, ?, '1996-07-04', '1996-08-01', '1996-07-16', 3, 32.3800011, 'Vins et alcools Chevalier', '59 rue de l''Abbaye', 'Reims', NULL, '51100', 'France')";
String insertOrderDetailsSQL = "INSERT INTO order_details VALUES (?, ?, ?, ?, 0)";
Expand Down

0 comments on commit 3d7506d

Please sign in to comment.