From 5d7a77c66a132de36e69f3c95b516d6be56b9203 Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Sat, 9 Jan 2021 12:26:52 -0600
Subject: [PATCH] Fix check when no times are returned

---
 ci_tests/_tests_common.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ci_tests/_tests_common.sh b/ci_tests/_tests_common.sh
index 5d73a3c..13f9499 100644
--- a/ci_tests/_tests_common.sh
+++ b/ci_tests/_tests_common.sh
@@ -6,8 +6,8 @@ debug() {
 
 error() {
     >&2 echo "ERROR: $@"
-    debug "Sleeping for debugging..."
-    sleep 300
+#    debug "Sleeping for debugging..."
+#    sleep 300
     exit 1
 }
 
@@ -189,9 +189,9 @@ run_mapserver_postgres_checks() {
     if [[ ${near_time} -ne 24 ]]; then
         return 1
     fi
-    # should not have had any results
+    # should not have had any results (result: "[]\n")
     debug "MapServer too late time size: ${too_late_time}"
-    if [[ ${too_late_time} -ne 0 ]]; then
+    if [[ ${too_late_time} -ne 3 ]]; then
         return 1
     fi
 
-- 
GitLab