From 25ca9b1f1906c4b75f3aa9d88677201d21ef5010 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 10 Jul 2023 17:03:23 -0400 Subject: [PATCH] Fix some failing tests in test_client.py --- src/allmydata/storage_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/allmydata/storage_client.py b/src/allmydata/storage_client.py index f16103121..e1522c616 100644 --- a/src/allmydata/storage_client.py +++ b/src/allmydata/storage_client.py @@ -367,8 +367,9 @@ class StorageFarmBroker(service.MultiService): serverid, {"ann": ann.copy()}, ) - s._rref = rref - s._is_connected = True + # Yes, this is terrible, this whole test method should go away + s._current_server._rref = rref # type: ignore + s._current_server._is_connected = True # type: ignore self.servers[serverid] = s def test_add_server(self, server_id, s):