Skip to content

Commit a7698d0

Browse files
committed
More format
1 parent 44a467a commit a7698d0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

sdk/test/metrics/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ cc_test(
3636
cc_test(
3737
name = "all_tests",
3838
srcs = glob(["*_test.cc"]),
39+
copts = [
40+
"-DUNIT_TESTING",
41+
],
3942
tags = [
4043
"metrics",
4144
"test",
@@ -44,9 +47,6 @@ cc_test(
4447
"metrics_common_test_utils",
4548
"@com_google_googletest//:gtest_main",
4649
],
47-
copts = [
48-
"-DUNIT_TESTING",
49-
],
5050
)
5151

5252
otel_cc_benchmark(

sdk/test/metrics/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ foreach(
3838
target_link_libraries(
3939
${testname} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
4040
metrics_common_test_utils opentelemetry_resources)
41-
target_compile_definitions(${testname} PRIVATE
42-
UNIT_TESTING)
41+
target_compile_definitions(${testname} PRIVATE UNIT_TESTING)
4342
gtest_add_tests(
4443
TARGET ${testname}
4544
TEST_PREFIX metrics.

0 commit comments

Comments
 (0)