From d81921c511dff92de321e757983f0591d1b90467 Mon Sep 17 00:00:00 2001
From: Christopher Haine <chaine@hotlum-login.head.cm.hpcrb.rdlabs.ext.hpe.com>
Date: Tue, 13 Dec 2022 10:50:51 -0600
Subject: [PATCH] smoother event handling in unit test

---
 maestro/subscription_registry.c | 2 +-
 tests/check_pm_declare.sh.in    | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/maestro/subscription_registry.c b/maestro/subscription_registry.c
index 5320959f..2b020bdc 100644
--- a/maestro/subscription_registry.c
+++ b/maestro/subscription_registry.c
@@ -720,7 +720,7 @@ mstro_subscription__destroy(mstro_subscription subscription)
   if(subscription->refcount==0) {
     DEBUG("Subscription %p has reached refcount 0, killing it\n");
     if(subscription->event_list) {
-      ERR("Unhandled events in subscription, dropping them\n");
+      WARN("Unhandled events in subscription, dropping them\n");
       s = mstro_subscription_event_ack(subscription,
                                        subscription->event_list);
       if(s!=MSTRO_OK) {
diff --git a/tests/check_pm_declare.sh.in b/tests/check_pm_declare.sh.in
index 9315032c..05518f34 100644
--- a/tests/check_pm_declare.sh.in
+++ b/tests/check_pm_declare.sh.in
@@ -90,9 +90,8 @@ export MSTRO_POOL_MANAGER_INFO
 # start listener
 (env MSTRO_LOG_LEVEL=0 ${TELEMETRY_CMD} \
      --workflow ${MSTRO_WORKFLOW_NAME}  \
-     --terminate-after "C2"             \
      --component Telemetry-Vampire      \
-     --max-idle 4 --destination stderr --verbose ) || exit 99 &
+     --max-idle 2 --destination stderr --verbose ) || exit 99 &
 
 sleep 1
 
-- 
GitLab