瀏覽代碼

Update tests/test_p2p_daemon.py

Co-authored-by: Alexander Borzunov <hxrussia@gmail.com>
Denis Mazur 4 年之前
父節點
當前提交
e6e6dde1dd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/test_p2p_daemon.py

+ 1 - 1
tests/test_p2p_daemon.py

@@ -36,7 +36,7 @@ async def test_daemon_killed_on_del():
 
 @pytest.mark.asyncio
 async def test_startup_error_message():
-    with pytest.raises(P2PDaemonError, match=r"failed to connect to bootstrap peers"):
+    with pytest.raises(P2PDaemonError, match=r"(?i)Failed to connect to bootstrap peers"):
         await P2P.create(
             initial_peers=[f"/ip4/127.0.0.1/tcp/{get_free_port()}/p2p/QmdaK4LUeQaKhqSFPRu9N7MvXUEWDxWwtCvPrS444tCgd1"]
         )