From 8a201916d428cd670873cf7d7a9269ffad02f4b5 Mon Sep 17 00:00:00 2001 From: Josh Fell Date: Mon, 31 Jan 2022 11:25:47 -0500 Subject: [PATCH] Fix failing TestSparkKubernetesSensor test --- .../providers/cncf/kubernetes/sensors/test_spark_kubernetes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/providers/cncf/kubernetes/sensors/test_spark_kubernetes.py b/tests/providers/cncf/kubernetes/sensors/test_spark_kubernetes.py index b4e5986be70b5..f939f10cdac90 100644 --- a/tests/providers/cncf/kubernetes/sensors/test_spark_kubernetes.py +++ b/tests/providers/cncf/kubernetes/sensors/test_spark_kubernetes.py @@ -749,7 +749,7 @@ def test_driver_logging_completed( ) sensor.poke(None) mock_log_call.assert_called_once_with("spark-pi-2020-02-24-1-driver", namespace="default") - log_info_call = info_log_call.mock_calls[1] + log_info_call = info_log_call.mock_calls[2] log_value = log_info_call[1][0] assert log_value == TEST_POD_LOG_RESULT