mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-21 06:13:41 +00:00
speed up tests
This commit is contained in:
parent
70ac53aa75
commit
a2abc0c2af
2 changed files with 7 additions and 10 deletions
|
|
@ -236,16 +236,10 @@ class TestRST(TestBase):
|
|||
self.vna.cmd(f"VNA:STIM:FREQ {f_1_3}")
|
||||
self.vna.cmd(f"VNA:STIM:LVL {pwr_min}")
|
||||
self.vna.cmd("VNA:SWEEP POWER")
|
||||
|
||||
# We just configured a lot of settings, give some time to empty the output queue from the GUI to the device
|
||||
time.sleep(2)
|
||||
|
||||
# Reset and verify all settings revert.
|
||||
self.vna.cmd("*RST")
|
||||
|
||||
# ... and wait a little bit here again to let the changes from the RST propagate from the device and back to the GUI (otherwise we might still read wrong external reference settings for example)
|
||||
time.sleep(2)
|
||||
|
||||
settings2 = self.query_settings()
|
||||
for key, value in settings1.items():
|
||||
self.assertEqual(value, settings2[key])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue