-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multiline log matching #743
Conversation
This is related to fabric8io#628 and fabric8io#608 and should fix both issues. Also, some refactoring has been performed for the wait checkers which were extracted into an extra package.
public boolean check() { | ||
try { | ||
return ping(); | ||
} catch (IOException exception) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
private WaitUtil() {} | ||
|
||
public static long wait(int wait, Callable<Void> callable) throws ExecutionException, WaitTimeoutException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its fine here.
s.connect(address, TCP_PING_TIMEOUT); | ||
s.close(); | ||
iter.remove(); | ||
} catch (IOException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wont fix
InetSocketAddress address = iter.next(); | ||
|
||
try { | ||
Socket s = new Socket(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its closed short after that and its part of the test. wont fix
Codecov Report
@@ Coverage Diff @@
## master #743 +/- ##
============================================
+ Coverage 47.51% 47.89% +0.38%
- Complexity 1023 1041 +18
============================================
Files 126 130 +4
Lines 6699 6710 +11
Branches 872 872
============================================
+ Hits 3183 3214 +31
+ Misses 3244 3222 -22
- Partials 272 274 +2
Continue to review full report at Codecov.
|
[merge] |
PR merged! Thanks!
This is related to #628 and #608 and should fix both issues.
Also, some refactoring has been performed for the wait checkers which were extracted into an extra package.