From 62bb584522654f793cc168b96e0c6903d296ad5e Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Tue, 25 Apr 2023 22:49:47 +0200 Subject: [PATCH] Add note for using xfail on test for mqtt_statestream (#91999) Co-authored-by: Martin Hjelmare --- tests/components/mqtt_statestream/test_init.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/components/mqtt_statestream/test_init.py b/tests/components/mqtt_statestream/test_init.py index c5c91a97eea..cd228183c9e 100644 --- a/tests/components/mqtt_statestream/test_init.py +++ b/tests/components/mqtt_statestream/test_init.py @@ -96,6 +96,9 @@ async def test_setup_and_stop_waits_for_ha( mqtt_mock.async_publish.assert_not_called() +# We use xfail with this test because there is an unhandled exception +# in a background task in this test. +# The exception is raised by mqtt.async_publish. @pytest.mark.xfail() async def test_startup_no_mqtt( hass: HomeAssistant, caplog: pytest.LogCaptureFixture