Skip to content

Commit 700c26f

Browse files
Ensure test_start_app takes 1s to stop kernel (#1364)
1 parent dd07f52 commit 700c26f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_kernelapp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ def trigger_stop():
3838
app.stop()
3939

4040
thread = threading.Thread(target=trigger_stop)
41+
t0 = time.time()
4142
thread.start()
4243
app.init_sockets()
4344
app.start()
45+
t1 = time.time()
46+
assert t1 - t0 >= 1
4447
app.cleanup_connection_file()
4548
app.kernel.destroy()
4649
app.close()

0 commit comments

Comments
 (0)