diff --git a/seabolt-test/src/mocks.cpp b/seabolt-test/src/mocks.cpp index ff26fa3a..3f47f279 100644 --- a/seabolt-test/src/mocks.cpp +++ b/seabolt-test/src/mocks.cpp @@ -37,6 +37,16 @@ int64_t BoltUtil_get_time_ms() return 0; } +int64_t BoltUtil_get_time_ms_from(struct timespec* tp) +{ + return 0; +} + +void BoltUtil_sleep(int milliseconds) +{ + +} + int64_t BoltUtil_increment(volatile int64_t* ref) { return (*ref += 1); diff --git a/seabolt/src/bolt/pool/direct-pool.c b/seabolt/src/bolt/pool/direct-pool.c index cf8603e6..8b59993b 100644 --- a/seabolt/src/bolt/pool/direct-pool.c +++ b/seabolt/src/bolt/pool/direct-pool.c @@ -204,7 +204,8 @@ void BoltDirectPool_destroy(struct BoltDirectPool* pool) struct BoltConnectionResult BoltDirectPool_acquire(struct BoltDirectPool* pool) { struct BoltConnectionResult handle; - int index = 0, pool_error = 0; + int index = 0; + enum BoltConnectionError pool_error = BOLT_SUCCESS; int64_t started_at = BoltUtil_get_time_ms(); BoltLog_info(pool->config->log, "acquiring connection from the pool");