Skip to content

Commit 6e33d29

Browse files
committed
add missing await
1 parent 590e455 commit 6e33d29

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/asynchronous/test_encryption.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,7 @@ async def test_1(self):
24932493
kms_providers={"local": {"key": LOCAL_MASTER_KEY}},
24942494
)
24952495
)
2496-
doc = anext(
2496+
doc = await anext(
24972497
await self.encrypted_client.db.csfle.aggregate(
24982498
[
24992499
{"$match": {"csfle": "csfle"}},
@@ -2522,7 +2522,7 @@ async def test_2(self):
25222522
kms_providers={"local": {"key": LOCAL_MASTER_KEY}},
25232523
)
25242524
)
2525-
doc = anext(
2525+
doc = await anext(
25262526
await self.encrypted_client.db.qe.aggregate(
25272527
[
25282528
{"$match": {"qe": "qe"}},
@@ -2551,7 +2551,7 @@ async def test_3(self):
25512551
kms_providers={"local": {"key": LOCAL_MASTER_KEY}},
25522552
)
25532553
)
2554-
doc = anext(
2554+
doc = await anext(
25552555
await self.encrypted_client.db.no_schema.aggregate(
25562556
[
25572557
{"$match": {"no_schema": "no_schema"}},
@@ -2577,7 +2577,7 @@ async def test_4(self):
25772577
kms_providers={"local": {"key": LOCAL_MASTER_KEY}},
25782578
)
25792579
)
2580-
doc = anext(
2580+
doc = await anext(
25812581
await self.encrypted_client.db.no_schema.aggregate(
25822582
[
25832583
{"$match": {"no_schema": "no_schema"}},
@@ -2606,7 +2606,7 @@ async def test_5(self):
26062606
kms_providers={"local": {"key": LOCAL_MASTER_KEY}},
26072607
)
26082608
)
2609-
doc = anext(
2609+
doc = await anext(
26102610
await self.encrypted_client.db.csfle.aggregate(
26112611
[
26122612
{"$match": {"csfle": "csfle"}},
@@ -2635,7 +2635,7 @@ async def test_6(self):
26352635
kms_providers={"local": {"key": LOCAL_MASTER_KEY}},
26362636
)
26372637
)
2638-
doc = anext(
2638+
doc = await anext(
26392639
await self.encrypted_client.db.qe.aggregate(
26402640
[
26412641
{"$match": {"qe": "qe"}},
@@ -2664,7 +2664,7 @@ async def test_7(self):
26642664
kms_providers={"local": {"key": LOCAL_MASTER_KEY}},
26652665
)
26662666
)
2667-
doc = anext(
2667+
doc = await anext(
26682668
await self.encrypted_client.db.no_schema.aggregate(
26692669
[
26702670
{"$match": {"no_schema": "no_schema"}},
@@ -2695,7 +2695,7 @@ async def test_8(self):
26952695
)
26962696
# not sure if this is the right error!
26972697
with self.assertRaises(PyMongoError) as exc:
2698-
_ = anext(
2698+
_ = await anext(
26992699
await self.encrypted_client.db.no_schema.aggregate(
27002700
[
27012701
{"$match": {"no_schema": "no_schema"}},
@@ -2727,7 +2727,7 @@ async def test_9(self):
27272727
)
27282728
# not sure if this is the right error!
27292729
with self.assertRaises(PyMongoError) as exc:
2730-
_ = anext(
2730+
_ = await anext(
27312731
await self.encrypted_client.db.csfle.aggregate(
27322732
[
27332733
{"$match": {"csfle": "csfle"}},

0 commit comments

Comments
 (0)