From 741c0d801ac4530669b8850706efe3f0bc0d5718 Mon Sep 17 00:00:00 2001 From: Peter Bacsko Date: Mon, 22 Apr 2024 23:43:07 +0800 Subject: [PATCH] [YUNIKORN-2563] [shim] Enable deadlock detection during unit tests (#821) Closes: #821 Signed-off-by: Chia-Ping Tsai --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 76a99f8db..92bb7d642 100644 --- a/Makefile +++ b/Makefile @@ -591,6 +591,9 @@ $(RELEASE_BIN_DIR)/$(TEST_SERVER_BINARY): go.mod go.sum $(shell find pkg) # Run the tests after building .PHONY: test +test: export DEADLOCK_DETECTION_ENABLED = true +test: export DEADLOCK_TIMEOUT_SECONDS = 10 +test: export DEADLOCK_EXIT = true test: @echo "running unit tests" @mkdir -p "$(OUTPUT)"