You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2022/07/13 02:21:02 UTC
[incubator-sedona] branch master updated: [DOCS] Fix Python tests which randomly fails (#650)
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sedona.git
The following commit(s) were added to refs/heads/master by this push:
new 15085a59 [DOCS] Fix Python tests which randomly fails (#650)
15085a59 is described below
commit 15085a597106581c5157eb274ee6bbaf16d1ee5e
Author: Jia Yu <ji...@apache.org>
AuthorDate: Tue Jul 12 19:20:58 2022 -0700
[DOCS] Fix Python tests which randomly fails (#650)
---
python/tests/streaming/spark/test_constructor_functions.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/tests/streaming/spark/test_constructor_functions.py b/python/tests/streaming/spark/test_constructor_functions.py
index 3884e5aa..f5f0e42a 100644
--- a/python/tests/streaming/spark/test_constructor_functions.py
+++ b/python/tests/streaming/spark/test_constructor_functions.py
@@ -1,5 +1,5 @@
import os
-import random
+import uuid
from typing import List, Any, Optional
import pytest
@@ -305,7 +305,7 @@ class TestConstructorFunctions(TestBase):
).selectExpr(f"{function_name}({', '.join(arguments)}) AS result")
# and target table
- random_table_name = f"view_{random.randint(0, 100000)}"
+ random_table_name = f"view_{uuid.uuid4().hex}"
# when saving stream to memory
streaming_query = input_stream.writeStream.format("memory") \