From c496ed5eebbf94f2b0ca83e18df79904a539a93d Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 07 9月 2019 21:16:29 +0800 Subject: [PATCH] review contribution guidelines --- test/functional/volid_test.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/volid_test.cpp b/test/functional/volid_test.cpp index f8b0d8d..f63d2b3 100644 --- a/test/functional/volid_test.cpp +++ b/test/functional/volid_test.cpp @@ -21,9 +21,9 @@ const string licLocation(PROJECT_TEST_TEMP_DIR "/volid_license.lic"); PcSignature identifier_out; - IDENTIFICATION_STRATEGY strategy = IDENTIFICATION_STRATEGY::ETHERNET; + const IDENTIFICATION_STRATEGY strategy = IDENTIFICATION_STRATEGY::ETHERNET; BOOST_TEST_CHECKPOINT("Before generate"); - FUNCTION_RETURN generate_ok = generate_user_pc_signature(identifier_out, + const FUNCTION_RETURN generate_ok = generate_user_pc_signature(identifier_out, strategy); BOOST_TEST_CHECKPOINT("After generate signature"); BOOST_ASSERT(generate_ok == FUNCTION_RETURN::FUNC_RET_OK); @@ -39,7 +39,7 @@ licenseLocation.openFileNearModule = false; licenseLocation.licenseFileLocation = licLocation.c_str(); licenseLocation.environmentVariableName = ""; - EVENT_TYPE result = acquire_license("TEST", licenseLocation, &license); + const EVENT_TYPE result = acquire_license("TEST", licenseLocation, &license); BOOST_CHECK_EQUAL(result, LICENSE_OK); BOOST_CHECK_EQUAL(license.has_expiry, false); BOOST_CHECK_EQUAL(license.linked_to_pc, true); -- Gitblit v1.9.1