Skip to content
Snippets Groups Projects
Commit 5ea31d19 authored by Andy Green's avatar Andy Green
Browse files

dbus: selftests should use more unique mirror session name

parent 4c5caf47
Branches
No related tags found
No related merge requests found
...@@ -259,11 +259,20 @@ bail: ...@@ -259,11 +259,20 @@ bail:
static int static int
remote_method_call(struct lws_dbus_ctx_wsproxy_client *dcwc) remote_method_call(struct lws_dbus_ctx_wsproxy_client *dcwc)
{ {
const char *uri = "wss://libwebsockets.org/?mirror=dbt"; char _uri[96];
const char *subprotocol = "lws-mirror-protocol"; const char *subprotocol = "lws-mirror-protocol", *uri = _uri;
DBusMessage *msg; DBusMessage *msg;
int ret = 1; 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( msg = dbus_message_new_method_call(
/* dest */ THIS_BUSNAME, /* dest */ THIS_BUSNAME,
/* object-path */ THIS_OBJECT, /* object-path */ THIS_OBJECT,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment