Skip to content

Commit dad9d7c

Browse files
committed
collection already exists
1 parent 2d4d154 commit dad9d7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stac_fastapi/elasticsearch/tests/clients/test_elasticsearch.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,24 @@ def test_create_collection(
3232
es_transactions.delete_collection(data["id"], request=MockStarletteRequest)
3333

3434

35-
@pytest.mark.skip(reason="passing but messing up the next test")
35+
# @pytest.mark.skip(reason="passing but messing up the next test")
3636
def test_create_collection_already_exists(
3737
es_transactions: TransactionsClient,
3838
load_test_data: Callable,
3939
):
4040
data = load_test_data("test_collection.json")
4141
es_transactions.create_collection(data, request=MockStarletteRequest)
4242

43+
time.sleep(1)
44+
4345
# change id to avoid elasticsearch duplicate key error
4446
data["_id"] = str(uuid.uuid4())
4547

4648
with pytest.raises(ConflictError):
4749
es_transactions.create_collection(data, request=MockStarletteRequest)
4850

51+
es_transactions.delete_collection(data["id"], request=MockStarletteRequest)
52+
4953

5054
def test_update_collection(
5155
es_core: CoreCrudClient,

0 commit comments

Comments
 (0)