Skip to content

Commit e5883b9

Browse files
authored
Minor test target fixes (#3801)
* Minor test target fixes * add test tag
1 parent 851c634 commit e5883b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ build-tests:
260260

261261
unit-test: clean-test-results
262262
@printf $(COLOR) "Run unit tests..."
263-
@go test $(UNIT_TEST_DIRS) -timeout=$(TEST_TIMEOUT) $(TEST_DIRS) -race | tee -a test.log
263+
@go test $(UNIT_TEST_DIRS) -timeout=$(TEST_TIMEOUT) $(TEST_TAG) -race | tee -a test.log
264264
@! grep -q "^--- FAIL" test.log
265265

266266
integration-test: clean-test-results
@@ -293,7 +293,7 @@ $(COVER_ROOT):
293293
unit-test-coverage: $(COVER_ROOT)
294294
@printf $(COLOR) "Run unit tests with coverage..."
295295
@echo "mode: atomic" > $(UNIT_COVER_PROFILE)
296-
@go test ./$(UNIT_TEST_DIRS) -timeout=$(TEST_TIMEOUT) -race -tags=unittest -coverprofile=$(UNIT_COVER_PROFILE) || exit 1;
296+
@go test ./$(UNIT_TEST_DIRS) -timeout=$(TEST_TIMEOUT) -race $(TEST_TAG) -coverprofile=$(UNIT_COVER_PROFILE) || exit 1;
297297

298298
integration-test-coverage: $(COVER_ROOT)
299299
@printf $(COLOR) "Run integration tests with coverage..."

0 commit comments

Comments
 (0)