summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/relay/api
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-05-14 22:27:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-05-14 22:27:11 +0200
commit484abc68fc719c668eec3b000adaac750737aa5c (patch)
tree0643894d2c173fc17860e4617ca11a8d50b4064f /tests/unit/plugins/relay/api
parentf116061868a96a337d174cd03588299d7372edd6 (diff)
downloadweechat-484abc68fc719c668eec3b000adaac750737aa5c.zip
relay: add option "autoconnect" in remote
This option enables auto-connection to the remote, unless command line option `-a` (`--no-connect`) is given.
Diffstat (limited to 'tests/unit/plugins/relay/api')
-rw-r--r--tests/unit/plugins/relay/api/remote/test-relay-remote-network.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/unit/plugins/relay/api/remote/test-relay-remote-network.cpp b/tests/unit/plugins/relay/api/remote/test-relay-remote-network.cpp
index fd5913f2c..098b93c50 100644
--- a/tests/unit/plugins/relay/api/remote/test-relay-remote-network.cpp
+++ b/tests/unit/plugins/relay/api/remote/test-relay-remote-network.cpp
@@ -53,10 +53,14 @@ TEST_GROUP(RelayRemoteNetworkWithRemote)
config_file_option_set (relay_config_look_auto_open_buffer, "off", 1);
/* create two relay remotes */
- ptr_relay_remote = relay_remote_new ("remote", "http://localhost:9000",
- NULL, "on", "secret", "secretbase32");
- ptr_relay_remote2 = relay_remote_new ("remote2", "https://localhost:9001/",
- "my_proxy", "off", "secret", "secretbase32");
+ ptr_relay_remote = relay_remote_new ("remote",
+ "http://localhost:9000",
+ "off", NULL, "on",
+ "secret", "secretbase32");
+ ptr_relay_remote2 = relay_remote_new ("remote2",
+ "https://localhost:9001/",
+ "off", "my_proxy", "off",
+ "secret", "secretbase32");
}
void teardown ()