Skip to content

Commit

Permalink
Made tests more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
twishabansal committed Sep 18, 2024
1 parent 6a9f8dc commit 58c14da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_pg_to_alloy_migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ async def test_amigrate_pgvector_collection_error(
)
await aexecute(migrator, f"TRUNCATE TABLE {EMBEDDING_TABLE}")
await aexecute(migrator, f"TRUNCATE TABLE {COLLECTIONS_TABLE}")
await aexecute(migrator, f"DROP TABLE IF EXISTS collection_1")

async def test_amigrate_pgvector_collection_json_metadata(
self, engine, migrator, sample_embeddings
Expand Down Expand Up @@ -575,6 +576,7 @@ async def test_migrate_pgvector_collection_error(self, migrator, sample_embeddin
)
await aexecute(migrator, f"TRUNCATE TABLE {EMBEDDING_TABLE}")
await aexecute(migrator, f"TRUNCATE TABLE {COLLECTIONS_TABLE}")
await aexecute(migrator, "DROP TABLE IF EXISTS collection_1")

async def test_migrate_pgvector_collection_json_metadata(
self, engine, migrator, sample_embeddings
Expand Down

0 comments on commit 58c14da

Please sign in to comment.