Skip to content

Commit

Permalink
[#73,#95] Fix unit test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
SwooshyCueb authored and alanking committed Nov 29, 2022
1 parent 626ae1f commit 18f0c41
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions unit_tests/b64enc/b64enc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ TEST_CASE("as-needed base64 encoding")
{
auto check_valid_str = [&]() {
// insert value
const std::uint64_t time_ms =
irods::audit::ts_clock::now().time_since_epoch() / std::chrono::milliseconds(1);
irods::audit::insert_as_string_or_base64(json_obj, key, val, time_ms);
const std::uint64_t time_ms = irods::plugin::rule_engine::audit_amqp::ts_clock::now().time_since_epoch() /
std::chrono::milliseconds(1);
irods::plugin::rule_engine::audit_amqp::insert_as_string_or_base64(json_obj, key, val, time_ms);

// verify b64 key does not exist
const auto b64val_container = json_obj.find(key + "_b64");
Expand Down Expand Up @@ -82,9 +82,9 @@ TEST_CASE("as-needed base64 encoding")

auto check_invalid_str = [&]() {
// insert value
const std::uint64_t time_ms =
irods::audit::ts_clock::now().time_since_epoch() / std::chrono::milliseconds(1);
irods::audit::insert_as_string_or_base64(json_obj, key, val, time_ms);
const std::uint64_t time_ms = irods::plugin::rule_engine::audit_amqp::ts_clock::now().time_since_epoch() /
std::chrono::milliseconds(1);
irods::plugin::rule_engine::audit_amqp::insert_as_string_or_base64(json_obj, key, val, time_ms);

// verify non-b64 key does not exist
const auto val_container = json_obj.find(key);
Expand Down

0 comments on commit 18f0c41

Please sign in to comment.