From f716328d90a09039742172ff22144b67ef256f09 Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 17 Dec 2020 13:27:49 +0100 Subject: [PATCH] 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 --- notebook/tests/services/kernel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notebook/tests/services/kernel.js b/notebook/tests/services/kernel.js index df69fdf02c..4f22b802e9 100644 --- a/notebook/tests/services/kernel.js +++ b/notebook/tests/services/kernel.js @@ -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 () {