From a7c5295cb0e2ea3cef89ccc59dbf811258c06673 Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 11 Sep 2023 09:30:05 -0400 Subject: [PATCH] test that priority connections polled after delay --- src/HavenoClient.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index 94c0f6c5..6d157e25 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -613,6 +613,9 @@ test("Can manage Monero daemon connections (CI)", async () => { // connection is restored, online, and authenticated connection = await user3.getMoneroConnection(); testConnection(connection!, TestConfig.monerod2.url, OnlineStatus.ONLINE, AuthenticationStatus.AUTHENTICATED, 1); + + // priority connections are polled + await wait(TestConfig.daemonPollPeriodMs * 2); connections = await user3.getMoneroConnections(); testConnection(getConnection(connections, monerodUrl1)!, monerodUrl1, OnlineStatus.ONLINE, AuthenticationStatus.AUTHENTICATED, 1);