mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
relay/api: add automatic reconnection to remote (closes #2166)
New options: - remote option "autoreconnect_delay" - relay.api.remote_autoreconnect_delay_growing - relay.api.remote_autoreconnect_delay_max
This commit is contained in:
@@ -56,11 +56,11 @@ TEST_GROUP(RelayRemoteNetworkWithRemote)
|
||||
/* create two relay remotes */
|
||||
ptr_relay_remote = relay_remote_new ("remote",
|
||||
"http://localhost:9000",
|
||||
"off", NULL, "on",
|
||||
NULL, "off", NULL, "on",
|
||||
"secret", "secretbase32");
|
||||
ptr_relay_remote2 = relay_remote_new ("remote2",
|
||||
"https://localhost:9001/",
|
||||
"off", "my_proxy", "off",
|
||||
"30", "off", "my_proxy", "off",
|
||||
"secret", "secretbase32");
|
||||
}
|
||||
|
||||
|
||||
@@ -264,6 +264,56 @@ TEST(RelayRemote, Rename)
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_disconnect
|
||||
*/
|
||||
|
||||
TEST(RelayRemote, Disconnect)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_reconnect_schedule
|
||||
*/
|
||||
|
||||
TEST(RelayRemote, ReconnectSchedule)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_reconnect
|
||||
*/
|
||||
|
||||
TEST(RelayRemote, Reconnect)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_timer
|
||||
*/
|
||||
|
||||
TEST(RelayRemote, Timer)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_disconnect_all
|
||||
*/
|
||||
|
||||
TEST(RelayRemote, DisconnectAll)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_free
|
||||
@@ -284,26 +334,6 @@ TEST(RelayRemote, FreeAll)
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_disconnect
|
||||
*/
|
||||
|
||||
TEST(RelayRemote, Disconnect)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_disconnect_all
|
||||
*/
|
||||
|
||||
TEST(RelayRemote, DisconnectAll)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_remote_add_to_infolist
|
||||
|
||||
Reference in New Issue
Block a user