Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
5d22a1d8
Commit
5d22a1d8
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-340
: Clean up for event loop
parent
5241984a
No related branches found
No related tags found
1 merge request
!117
create TCPReplicator for StatisticsClient
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/clients/tcp_replicator.py
+2
-2
2 additions, 2 deletions
devices/clients/tcp_replicator.py
devices/integration_test/client/test_tcp_replicator.py
+0
-5
0 additions, 5 deletions
devices/integration_test/client/test_tcp_replicator.py
with
2 additions
and
7 deletions
devices/clients/tcp_replicator.py
+
2
−
2
View file @
5d22a1d8
...
@@ -140,8 +140,8 @@ class TCPReplicator(Thread, StatisticsClientThread):
...
@@ -140,8 +140,8 @@ class TCPReplicator(Thread, StatisticsClientThread):
# Create the event loop, must be done in the new thread
# Create the event loop, must be done in the new thread
self
.
_loop
=
asyncio
.
new_event_loop
()
self
.
_loop
=
asyncio
.
new_event_loop
()
#
TODO(Corne): REMOVE ME
#
When wanting to debug event loop behavior, uncomment this
self
.
_loop
.
set_debug
(
True
)
#
self._loop.set_debug(True)
# Schedule the task to create the server
# Schedule the task to create the server
self
.
_loop
.
create_task
(
TCPReplicator
.
_run_server
(
self
.
_loop
.
create_task
(
TCPReplicator
.
_run_server
(
...
...
This diff is collapsed.
Click to expand it.
devices/integration_test/client/test_tcp_replicator.py
+
0
−
5
View file @
5d22a1d8
...
@@ -16,8 +16,6 @@ from clients.tcp_replicator import TCPReplicator
...
@@ -16,8 +16,6 @@ from clients.tcp_replicator import TCPReplicator
from
integration_test
import
base
from
integration_test
import
base
import
timeout_decorator
logger
=
logging
.
getLogger
()
logger
=
logging
.
getLogger
()
...
@@ -36,9 +34,6 @@ class TestTCPReplicator(base.IntegrationTestCase):
...
@@ -36,9 +34,6 @@ class TestTCPReplicator(base.IntegrationTestCase):
replicator
=
TCPReplicator
(
test_options
)
replicator
=
TCPReplicator
(
test_options
)
def
test_start_except
(
self
):
def
test_start_transmit_empty_stop
(
self
):
def
test_start_transmit_empty_stop
(
self
):
"""
Test transmitting without clients
"""
"""
Test transmitting without clients
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment