Skip to content

Commit

Permalink
add retry to reduce flakiness of TestSecrets (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt authored Jun 14, 2024
1 parent a886ac1 commit 6f876fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/functional/adapter/test_python_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ class TestSecrets:
def models(self):
return {"secret_python_model.py": SECRETS_MODE}

# This test can be flaky because of delays in the integration being set up before trying to use it.
@pytest.fixture(scope="class")
def profiles_config_update(self):
return {"retry_all": True, "connect_retries": 3}

def test_secrets(self, project):
project.run_sql(
"create or replace secret test_secret type = generic_string secret_string='secret value';"
Expand Down

0 comments on commit 6f876fc

Please sign in to comment.