Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-bukhtoyarov committed Mar 20, 2024
1 parent 06a5019 commit f3f347f
Showing 1 changed file with 7 additions and 4 deletions.
Expand Up @@ -39,15 +39,18 @@ public static void initializeInstance() throws SQLException {
statement.execute(query);
}
}
SQLProxyConfiguration<Long> configuration = SQLProxyConfiguration.builder()
.withTableSettings(tableSettings)
.build(dataSource);

specs = Arrays.asList(
new ProxyManagerSpec<>(
"MySQLSelectForUpdateBasedProxyManager",
() -> ThreadLocalRandom.current().nextLong(1_000_000_000),
clientConfig -> new MySQLSelectForUpdateBasedProxyManager<>(configuration)
clientConfig -> {
SQLProxyConfiguration<Long> configuration = SQLProxyConfiguration.builder()
.withTableSettings(tableSettings)
.withClientSideConfig(clientConfig)
.build(dataSource);
return new MySQLSelectForUpdateBasedProxyManager<>(configuration);
}
)
);
}
Expand Down

0 comments on commit f3f347f

Please sign in to comment.