relax busy/idle ordering on reconnect

nudge can leak idle messages, so it could be busy->idle, or idle->busy->idle.

The important thing is that we get at least one idle message
This commit is contained in:
Min RK 2020-12-17 13:27:49 +01:00
parent b4f5f6b4d4
commit f716328d90

View File

@ -242,8 +242,9 @@ casper.notebook_test(function () {
'kernel_disconnected.Kernel',
'kernel_reconnecting.Kernel',
'kernel_connected.Kernel',
'kernel_busy.Kernel',
'kernel_idle.Kernel'
// note: there will be a 'busy' in here, too,
// but we can't guarantee which will come first
'kernel_idle.Kernel',
],
function () {
this.thenEvaluate(function () {
@ -262,8 +263,7 @@ casper.notebook_test(function () {
'kernel_connection_failed.Kernel',
'kernel_reconnecting.Kernel',
'kernel_connected.Kernel',
'kernel_busy.Kernel',
'kernel_idle.Kernel'
'kernel_idle.Kernel',
],
function () {
this.thenEvaluate(function () {