From 21ccdae70baaca0c7aeca8542f2a0a431f06c313 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 23 Oct 2014 15:29:09 -0400 Subject: [PATCH] 4295: Fixed tests --- services/api/lib/eventbus.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/lib/eventbus.rb b/services/api/lib/eventbus.rb index 080138ba4c..a0c0b272e7 100644 --- a/services/api/lib/eventbus.rb +++ b/services/api/lib/eventbus.rb @@ -123,7 +123,7 @@ class EventBus # another query to get more logs (will start from last_log_id # reported by current query) @channel.push nil - elsif !notify_id.nil? and notify_id > ws.last_log_id + elsif !notify_id.nil? and (ws.last_log_id.nil? or notify_id > ws.last_log_id) # Number of rows returned was less than cap, but the notify id is # higher than the last id visible to the client, so update last_log_id ws.last_log_id = notify_id -- 2.39.5