Commit 7595f76 1 parent 2dc85ec commit 7595f76 Copy full SHA for 7595f76
File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -235,11 +235,8 @@ def __call__(self, **kwargs):
235
235
# Give response.close() time to finish.
236
236
await communicator .wait ()
237
237
238
- # At this point, AsyncToSync does not have a current executor. Thus
239
- # SyncToAsync falls-back to .single_thread_executor.
240
- target_thread = next (iter (SyncToAsync .single_thread_executor ._threads ))
238
+ # AsyncToSync should have executed the signals in the same thread.
241
239
request_started_thread , request_finished_thread = signal_handler .threads
242
- self .assertEqual (request_started_thread , target_thread )
243
- self .assertEqual (request_finished_thread , target_thread )
240
+ self .assertEqual (request_started_thread , request_finished_thread )
244
241
request_started .disconnect (signal_handler )
245
242
request_finished .disconnect (signal_handler )
You can’t perform that action at this time.
0 commit comments