1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

dbus: selftests should use more unique mirror session name

This commit is contained in:
Andy Green 2019-03-14 08:52:51 +08:00
parent ce273b1c4f
commit 274b491080

View file

@ -259,11 +259,20 @@ bail:
static int
remote_method_call(struct lws_dbus_ctx_wsproxy_client *dcwc)
{
const char *uri = "wss://libwebsockets.org/?mirror=dbt";
const char *subprotocol = "lws-mirror-protocol";
char _uri[96];
const char *subprotocol = "lws-mirror-protocol", *uri = _uri;
DBusMessage *msg;
int ret = 1;
/*
* make our own private mirror session... because others may run this
* at the same time against libwebsockets.org... as happened 2019-03-14
* and broke travis tests :-)
*/
lws_snprintf(_uri, sizeof(_uri), "wss://libwebsockets.org/?mirror=dbt-%d",
(int)getpid());
msg = dbus_message_new_method_call(
/* dest */ THIS_BUSNAME,
/* object-path */ THIS_OBJECT,