First of all I'm sorry for my English, I'm supported by the translator.

I'm trying to simulate 2 simultaneous connections in my unit tests, but 
channel name gets repeated and causes the system to "ignore" one of the 
connections.

self._send_and_consume('websocket.connect', {"text": "", "path": "/"})
> --> *message.reply_channel.name = defaultwddHR*

 

>
> self._send_and_consume('websocket.connect', {"text": "", "path": "/"})
> --> *message.reply_channel.name = defaultwddHR*


The two calls go through every stream, but I used the connection name as 
the primary key. So when I'm having trouble doing tests.

PS: Running in "real" environment works. Is random channel name.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e7abd141-0fb6-4b46-b87f-b78daec6e084%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to