Fixing miniconf API after updates

master
Ryan Summers 2021-08-09 14:18:09 +02:00
parent bfbe807690
commit e478dfc70f
1 changed files with 2 additions and 4 deletions

View File

@ -131,8 +131,7 @@ def main():
# Configure the stream # Configure the stream
print(f'Configuring stream to target {".".join(map(str, local_ip))}:{args.port}') print(f'Configuring stream to target {".".join(map(str, local_ip))}:{args.port}')
print('') print('')
assert (await interface.command('stream_target', await interface.command('stream_target', {'ip': local_ip, 'port': args.port})
{'ip': local_ip, 'port': args.port}))['code'] == 0
# Verify frame reception # Verify frame reception
print('Testing stream reception') print('Testing stream reception')
@ -146,8 +145,7 @@ def main():
# Disable the stream. # Disable the stream.
print('Closing stream') print('Closing stream')
print('') print('')
assert (await interface.command('stream_target', await interface.command('stream_target', {'ip': [0, 0, 0, 0], 'port': 0})
{'ip': [0, 0, 0, 0], 'port': 0}))['code'] == 0
stream.clear() stream.clear()
print('Verifying no further data is received') print('Verifying no further data is received')