Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
eef145b8
Commit
eef145b8
authored
Jun 26, 2019
by
Peter Yin
Committed by
oroulet
Jul 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update test to check sub ids
parent
3a232c30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
tests/test_server.py
tests/test_server.py
+7
-5
No files found.
tests/test_server.py
View file @
eef145b8
...
...
@@ -126,11 +126,13 @@ async def test_multiple_clients_with_subscriptions(server):
sub2
=
await
client2
.
create_subscription
(
100
,
sub_handler
)
await
sub1
.
subscribe_data_change
(
var
)
await
sub2
.
subscribe_data_change
(
var
)
assert
len
(
server
.
iserver
.
subscription_service
.
subscriptions
)
==
2
# When client2 disconnects, client1 should still keep it's subscription.
assert
len
(
server
.
iserver
.
subscription_service
.
subscriptions
)
==
1
assert
len
(
server
.
iserver
.
subscription_service
.
subscriptions
)
==
0
assert
sub1
.
subscription_id
in
server
.
iserver
.
subscription_service
.
subscriptions
assert
sub2
.
subscription_id
in
server
.
iserver
.
subscription_service
.
subscriptions
# When client2 disconnects, client1 should still keep its subscription.
assert
sub1
.
subscription_id
in
server
.
iserver
.
subscription_service
.
subscriptions
assert
sub2
.
subscription_id
not
in
server
.
iserver
.
subscription_service
.
subscriptions
assert
sub1
.
subscription_id
not
in
server
.
iserver
.
subscription_service
.
subscriptions
assert
sub2
.
subscription_id
not
in
server
.
iserver
.
subscription_service
.
subscriptions
async
def
test_historize_events
(
server
):
srv_node
=
server
.
get_node
(
ua
.
ObjectIds
.
Server
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment