test that priority connections polled after delay

This commit is contained in:
woodser 2023-09-11 09:30:05 -04:00
parent 70f8c51d07
commit a7c5295cb0

View File

@ -613,6 +613,9 @@ test("Can manage Monero daemon connections (CI)", async () => {
// connection is restored, online, and authenticated // connection is restored, online, and authenticated
connection = await user3.getMoneroConnection(); connection = await user3.getMoneroConnection();
testConnection(connection!, TestConfig.monerod2.url, OnlineStatus.ONLINE, AuthenticationStatus.AUTHENTICATED, 1); testConnection(connection!, TestConfig.monerod2.url, OnlineStatus.ONLINE, AuthenticationStatus.AUTHENTICATED, 1);
// priority connections are polled
await wait(TestConfig.daemonPollPeriodMs * 2);
connections = await user3.getMoneroConnections(); connections = await user3.getMoneroConnections();
testConnection(getConnection(connections, monerodUrl1)!, monerodUrl1, OnlineStatus.ONLINE, AuthenticationStatus.AUTHENTICATED, 1); testConnection(getConnection(connections, monerodUrl1)!, monerodUrl1, OnlineStatus.ONLINE, AuthenticationStatus.AUTHENTICATED, 1);