aboutsummaryrefslogtreecommitdiff
path: root/keyserver
diff options
context:
space:
mode:
authorS7evinK <2353100+S7evinK@users.noreply.github.com>2022-02-16 17:56:45 +0100
committerGitHub <noreply@github.com>2022-02-16 16:56:45 +0000
commite9b672a34e08bce9d12b2a2454c19fde6e52036e (patch)
treec44a5ae6a9f536a19185c0b07c297b59740a9005 /keyserver
parentfa1e12b503376cd34bac730f81aeedc8dca1b2aa (diff)
Make "Device list doesn't change if remote server is down" pass (#2190)
Diffstat (limited to 'keyserver')
-rw-r--r--keyserver/internal/internal.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyserver/internal/internal.go b/keyserver/internal/internal.go
index 2536c1f7..ffbcac94 100644
--- a/keyserver/internal/internal.go
+++ b/keyserver/internal/internal.go
@@ -513,6 +513,11 @@ func (a *KeyInternalAPI) queryRemoteKeysOnServer(
// drop the error as it's already a failure at this point
_ = a.populateResponseWithDeviceKeysFromDatabase(ctx, res, userID, dkeys)
}
+
+ // Sytest expects no failures, if we still could retrieve keys, e.g. from local cache
+ if len(res.DeviceKeys) > 0 {
+ delete(res.Failures, serverName)
+ }
respMu.Unlock()
}