Skip to content

Commit

Permalink
test-dds-cotrol-reply add server cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
OhadMeir committed Feb 4, 2025
1 parent eb889f6 commit 60bd7e0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion unit-tests/dds/test-control-reply.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Copyright(c) 2023-4 Intel Corporation. All Rights Reserved.

#test:donotrun:!dds
#test:retries 2

from rspy import log, test
import time
import pyrealdds as dds
dds.debug( log.is_debug_on() )

Expand Down Expand Up @@ -139,6 +139,14 @@ def control( device, json, n=1 ):
test.check_equal( reply_count[device.guid()], dev1_replies + 1 )
test.check_equal( reply_count[device2.guid()], dev2_replies + 1 )

print( "****** Calling device = None" )
device = None
print( "****** Calling server = None" )
remote.run( 'server = None' )
print( "****** after server = None, going to sleep" )
time.sleep(0.050) # Give server and device time to close gracefully
print( "****** after sleep" )

print( "****** Calling print_results" )
test.print_results()
print( "****** After print_results" )

0 comments on commit 60bd7e0

Please sign in to comment.