Skip to content

Commit

Permalink
Add possible fixes for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssciolla committed Apr 17, 2024
1 parent 3205c91 commit 7fc165a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ jobs:
- name: Run tests
env:
SETTINGS_LOG_LEVEL: debug
SETTINGS_WORKING_DIR: ./prep
SETTINGS_EXPORT_DIR: ./export
SETTINGS_DRY_RUN: false
SETTINGS_OBJECT_SIZE_LIMIT: 2000
REPOSITORY_NAME: test
REPOSITORY_DESCRIPTION: test
TYPE: aptrust
APTRUST_API_USERNAME: user
APTRUST_API_API_KEY: key
APTRUST_API_BASE_URL: url
DATABASE_HOST: 127.0.0.1
DATABASE_DATABASE: test_database
DATABASE_PORT: 3306
Expand Down
14 changes: 7 additions & 7 deletions services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
Config::ConfigService.database_config_from_env
end


# Logger
module DarkBlueLogger
def self.included(klass)
Expand All @@ -32,7 +31,7 @@ def self.included(klass)
S.register(:logger) do
if !SemanticLogger::Logger.processor.appenders.console_output?
SemanticLogger.add_appender(io: S.log_stream, formatter: :color)
SemanticLogger.default_level = S.config.settings.log_level || "debug"
SemanticLogger.default_level = Config::ConfigService.log_level_from_env
end
end
end
Expand All @@ -42,11 +41,12 @@ def self.included(klass)

# Database Connection
S.register(:dbconnect) do
db_config = S.db_config
Sequel.connect(adapter: "mysql2",
host: S.config.database.host,
port: S.config.database.port,
database: S.config.database.database,
user: S.config.database.user,
password: S.config.database.password,
host: db_config.database.host,
port: db_config.database.port,
database: db_config.database.database,
user: db_config.database.user,
password: db_config.database.password,
fractional_seconds: true)
end

0 comments on commit 7fc165a

Please sign in to comment.