Improve some tests (#2278)

* Improve some tests

* Fix
This commit is contained in:
Ayaz Salikhov
2025-04-04 01:44:03 +01:00
committed by GitHub
parent f4b31dda77
commit c81d61bbc1
3 changed files with 6 additions and 14 deletions

View File

@@ -15,7 +15,5 @@ def test_spark_shell(container: TrackedContainer) -> None:
command=["bash", "-c", 'spark-shell <<< "1+1"'],
)
warnings = TrackedContainer.get_warnings(logs)
assert len(warnings) == 1
assert "Using incubator modules: jdk.incubator.vector" in warnings[0]
assert warnings == ["WARNING: Using incubator modules: jdk.incubator.vector"]
assert "res0: Int = 2" in logs, "spark-shell does not work"