mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-12 12:32:58 +00:00
Better warnings check
This commit is contained in:
@@ -11,9 +11,14 @@ LOGGER = logging.getLogger(__name__)
|
||||
def test_spark_shell(container: TrackedContainer) -> None:
|
||||
"""Checking if Spark (spark-shell) is running properly"""
|
||||
logs = container.run_and_wait(
|
||||
no_warnings=False, # WARNING: An illegal reflective access operation has occurred
|
||||
timeout=60,
|
||||
no_warnings=False,
|
||||
tty=True,
|
||||
command=["start.sh", "bash", "-c", 'spark-shell <<< "1+1"'],
|
||||
)
|
||||
# Spark warning
|
||||
warnings = TrackedContainer.get_warnings(logs)
|
||||
assert len(warnings) == 1
|
||||
assert "An illegal reflective access operation has occurred" in warnings[0]
|
||||
|
||||
assert "res0: Int = 2" in logs, "spark-shell does not work"
|
||||
|
Reference in New Issue
Block a user