Skip to content

Commit

Permalink
add a printing to test
Browse files Browse the repository at this point in the history
Adding the values to be printed in the console before assert them in test_namespace_cache.js.

Signed-off-by: shirady <57721533+shirady@users.noreply.github.com>
  • Loading branch information
shirady committed Jan 2, 2024
1 parent ba50da7 commit eae46f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/unit_tests/test_namespace_cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,8 @@ mocha.describe('namespace caching: range read scenarios', () => {
assert(read_etag === expect_etag);

const read_hub_time = recorder.get_event('hub', obj.bucket, obj.key, EVENT_READ_OBJECT_STREAM);
console.log(`CHECK_VALUE: read_hub_time ${read_hub_time} err_trigger_time ${err_trigger_time}`);
// I noticed that we sometimes fail on this assertion in the CI, hence I added the printing above.
assert(read_hub_time > err_trigger_time);
});

Expand Down

0 comments on commit eae46f3

Please sign in to comment.