From 2871ed61f9bb780c1ce7ea9d3e33f60d55847377 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 15 Nov 2024 18:20:56 +0100 Subject: [PATCH] fix --- rust/periodic_tasks/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/periodic_tasks/Makefile b/rust/periodic_tasks/Makefile index 1a09f9dfd..4c5ec0122 100644 --- a/rust/periodic_tasks/Makefile +++ b/rust/periodic_tasks/Makefile @@ -30,11 +30,11 @@ deploy: .SILENT: test test: deploy # Validate the counters are non-zero. - while [ "$(dfx canister call heartbeat counter --output json)" = "0" ]; do sleep 1; done && dfx canister call heartbeat counter --output json | grep -vw "0" && echo 'PASS' - while [ "$(dfx canister call timer counter --output json)" = "0" ]; do sleep 1; done && dfx canister call timer counter --output json | grep -vw "0" && echo 'PASS' + while [ "$$(dfx canister call heartbeat counter --output json)" = "0" ]; do sleep 1; done && dfx canister call heartbeat counter --output json | grep -vw "0" && echo 'PASS' + while [ "$$(dfx canister call timer counter --output json)" = "0" ]; do sleep 1; done && dfx canister call timer counter --output json | grep -vw "0" && echo 'PASS' # Validate the cycles used for periodic tasks are non-zero. - while [ "$(dfx canister call heartbeat cycles_used --output json)" = "0" ]; do sleep 1; done && dfx canister call heartbeat cycles_used --output json | grep -vw "0" && echo 'PASS' - while [ "$(dfx canister call timer cycles_used --output json)" = "0" ]; do sleep 1; done && dfx canister call timer cycles_used --output json | grep -vw "0" && echo 'PASS' + while [ "$$(dfx canister call heartbeat cycles_used --output json)" = "\"0\"" ]; do sleep 1; done && dfx canister call heartbeat cycles_used --output json | grep -vw "0" && echo 'PASS' + while [ "$$(dfx canister call timer cycles_used --output json)" = "\"0\"" ]; do sleep 1; done && dfx canister call timer cycles_used --output json | grep -vw "0" && echo 'PASS' .PHONY: clean .SILENT: clean