Skip to content

Conversation

@gavv
Copy link
Member

@gavv gavv commented Apr 3, 2023

On recent libroc (not released yet, but already installed on my system), in log messages parenthesis were added to function names when they were missing, e.g. roc_context_open was replaced with roc_context_open().

Due to this, logger test hangs on my system. I modified the test to work on both old and new version, by relaxing log messages matching.

@gavv gavv requested a review from ortex April 3, 2023 08:26
.until(() -> {
boolean hasLogOpen = false, hasLogClose = false;
for (String s : logs) {
if (s.contains(logOpen)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe replace contains with startsWith ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

.untilAsserted(() -> assertTrue(logs.contains(logOpen) && logs.contains(logClose)));
.until(() -> {
boolean hasLogOpen = false, hasLogClose = false;
for (String s : logs) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s -> log ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ortex ortex merged commit ea4115d into roc-streaming:main Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants