Commit a18ec58a authored by Lukáš Lalinský's avatar Lukáš Lalinský

Fix DB settings in tests

parent ae1d2c6b
Pipeline #20449 failed with stages
in 43 seconds
......@@ -24,7 +24,8 @@ test:
POSTGRES_USER: acoustid
POSTGRES_PASSWORD: acoustid
POSTGRES_DB: acoustid_test
ACOUSTID_TEST_POSTGRES_HOST: postgres
ACOUSTID_TEST_DB_DEFAULT_HOST: postgres
ACOUSTID_TEST_DB_SLOW_HOST: postgres
ACOUSTID_TEST_REDIS_HOST: redis
cache:
key: $CI_JOB_NAME-$CI_COMMIT_REF_SLUG
......
......@@ -546,7 +546,6 @@ class LookupHandler(APIHandler):
return seen
def _handle_internal(self, params):
import time
t = time.time()
update_user_agent_counter(self.redis, params.application_id, self.user_agent, self.user_ip)
searcher = FingerprintSearcher(self.conn, self.index)
......
......@@ -404,7 +404,7 @@ class Config(object):
prefix = 'ACOUSTID_TEST_'
else:
prefix = 'ACOUSTID_'
self.databases.read_env(prefix)
self.databases.read_env(prefix + 'DB_')
self.logging.read_env(prefix)
self.website.read_env(prefix)
self.index.read_env(prefix)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment