diff --git a/tests/src/unit-bon8.cpp b/tests/src/unit-bon8.cpp index 6953adf0e..bf3e99c9b 100644 --- a/tests/src/unit-bon8.cpp +++ b/tests/src/unit-bon8.cpp @@ -31,6 +31,9 @@ SOFTWARE. #include using nlohmann::json; +#ifdef JSON_TEST_NO_GLOBAL_UDLS +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) +#endif #include #include diff --git a/tests/src/unit-bson.cpp b/tests/src/unit-bson.cpp index fa07e9d9c..a231c8cca 100644 --- a/tests/src/unit-bson.cpp +++ b/tests/src/unit-bson.cpp @@ -10,9 +10,6 @@ #include using nlohmann::json; -#ifdef JSON_TEST_NO_GLOBAL_UDLS -using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) -#endif #include #include