Ver código fonte

SIlly bugfix to client test

Graham Northup 8 anos atrás
pai
commit
75bc43e7da
1 arquivos alterados com 7 adições e 4 exclusões
  1. 7 4
      client.py

+ 7 - 4
client.py

@@ -402,13 +402,16 @@ if options.gui:
     guithread.start()
     guithread.start()
 
 
 if options.test:
 if options.test:
-    FREQ = 440
+    FREQS[0] = 440
+    EXPIRATIONS[0] = time.time() + 1
     time.sleep(1)
     time.sleep(1)
-    FREQ = 0
+    FREQS[0] = 0
     time.sleep(1)
     time.sleep(1)
-    FREQ = 880
+    FREQS[0] = 880
+    EXPIRATIONS[0] = time.time() + 1
     time.sleep(1)
     time.sleep(1)
-    FREQ = 440
+    FREQS[0] = 440
+    EXPIRATIONS[0] = time.time() + 2
     time.sleep(2)
     time.sleep(2)
     exit()
     exit()