summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2012-01-05 13:48:10 (GMT)
committerJonny Lamb <jonny.lamb@collabora.co.uk>2012-01-05 13:48:10 (GMT)
commitf012cb6b5e016c322fc0ad99f64acf132a4e1f9e (patch)
tree87d1d3443ea9aa9b2c960dbc549488e4bb03f6eb
parentf312040d789a823a66a3c044ceaf7da3064529fc (diff)
downloadtelepathy-salut-f012cb6b5e016c322fc0ad99f64acf132a4e1f9e.tar.gz
telepathy-salut-f012cb6b5e016c322fc0ad99f64acf132a4e1f9e.tar.xz
two-muc-stream-tubes: use temporary file as unix socket path
This is all an attempt to make the unix path socket path shorter. Fixes: fd.o#44020 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--tests/twisted/avahi/tubes/two-muc-stream-tubes.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/twisted/avahi/tubes/two-muc-stream-tubes.py b/tests/twisted/avahi/tubes/two-muc-stream-tubes.py
index 53d4536..b4d7a08 100644
--- a/tests/twisted/avahi/tubes/two-muc-stream-tubes.py
+++ b/tests/twisted/avahi/tubes/two-muc-stream-tubes.py
@@ -3,6 +3,7 @@ import dbus
import os
import errno
import string
+import tempfile
from servicetest import make_channel_proxy, Event, call_async, EventPattern
@@ -55,7 +56,7 @@ def test(q, bus, conn):
# create the server
factory = Factory()
factory.protocol = TrivialServer
- server_socket_address = os.getcwd() + '/stream'
+ server_socket_address = tempfile.mkstemp()[1]
try:
os.remove(server_socket_address)
except OSError, e:
@@ -371,6 +372,9 @@ def test(q, bus, conn):
conn.Disconnect()
conn2.Disconnect()
+ # cleanup
+ os.remove(server_socket_address)
+
if __name__ == '__main__':
# increase timer because Clique takes some time to join an existing muc
exec_test(test, timeout=60)