Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Mar 12, 2024
1 parent 78ef1eb commit beb547b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test with Astra DB
name: Unit tests

on:
push:
Expand All @@ -10,6 +10,8 @@ on:

jobs:
unit-test:
env:
TEST_DB_MODE: LOCAL_CASSANDRA
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def getDBKeyspace():

@pytest.fixture(scope="session", autouse=True)
def cassandra_port(db_keyspace):
if os.getenv("TEST_DB_MODE", "TESTCONTAINERS_CASSANDRA") == "TESTCONTAINERS_CASSANDRA":
if os.getenv("TEST_DB_MODE", "LOCAL_CASSANDRA") == "TESTCONTAINERS_CASSANDRA":
cassandra = DockerContainer("cassandra:5").with_exposed_ports(9042)
cassandra.start()
wait_for_logs(cassandra, "Startup complete")
Expand Down

0 comments on commit beb547b

Please sign in to comment.