From 6918504ec3ee5669ec740ccfb2202226aaaeef02 Mon Sep 17 00:00:00 2001 From: Nate Anderson Date: Tue, 1 Oct 2024 09:38:58 -0700 Subject: [PATCH] chore: enable consistent reads for auth and topics canaries (#582) --- Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 809b10b6..e486c379 100644 --- a/Makefile +++ b/Makefile @@ -32,13 +32,9 @@ TEST_LOGGER_OPTIONS := --logger "console;verbosity=detailed" ifneq (,$(findstring NT,$(OS))) BUILD_TARGETS := build-dotnet6 build-dotnet-framework TEST_TARGETS := test-dotnet6 test-dotnet-framework - TEST_TARGETS_AUTH_SERVICE := test-dotnet6-auth-service test-dotnet-framework-auth-service - TEST_TARGETS_TOPICS_SERVICE := test-dotnet6-topics-service test-dotnet-framework-topics-service else BUILD_TARGETS := build-dotnet6 TEST_TARGETS := test-dotnet6 - TEST_TARGETS_AUTH_SERVICE := test-dotnet6-auth-service - TEST_TARGETS_TOPICS_SERVICE := test-dotnet6-topics-service endif # Enable gRPC-Web if requested @@ -155,7 +151,12 @@ test-dotnet-framework-auth-service: ## Run auth service tests -test-auth-service: ${TEST_TARGETS_AUTH_SERVICE} +test-auth-service: +ifeq (,$(findstring NT,$(OS))) + @CONSISTENT_READS=1 $(MAKE) test-dotnet6-auth-service +else + @set CONSISTENT_READS=1 && $(MAKE) test-dotnet6-auth-service test-dotnet-framework-auth-service +endif ## Run cache service tests @@ -178,7 +179,12 @@ test-storage-service: ## Run topics service tests -test-topics-service: ${TEST_TARGETS_TOPICS_SERVICE} +test-topics-service: +ifeq (,$(findstring NT,$(OS))) + @CONSISTENT_READS=1 $(MAKE) test-dotnet6-topics-service +else + @set CONSISTENT_READS=1 && $(MAKE) test-dotnet6-topics-service test-dotnet-framework-topics-service +endif ## Run example applications and snippets