diff --git a/test/asynchronous/test_encryption.py b/test/asynchronous/test_encryption.py index 86172b4993..57acf5824e 100644 --- a/test/asynchronous/test_encryption.py +++ b/test/asynchronous/test_encryption.py @@ -2922,7 +2922,7 @@ async def encrypt_and_cast(i): EncryptionError, "expected matching 'min' and value type. Got range option" ): await self.client_encryption.encrypt( - 6 if cast_func is int else float(6), + 6 if cast_func is not int else float(6), key_id=self.key1_id, algorithm=Algorithm.RANGE, contention_factor=0,