-
Notifications
You must be signed in to change notification settings - Fork 122
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
Test cleanup #524
Test cleanup #524
Changes from all commits
6ac927f
1e292ff
3f90043
1146892
93abd19
27e0caf
086b4bf
2e94517
ef019e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# the idea of this dockerfile is to allow running artio build in multiple containers in order to increase the chances of a failing test locally | ||
FROM alpine/java:21-jdk as artio-image | ||
ENV GRADLE_OPTS="-Dorg.gradle.daemon=false -Dfix.core.debug=STATE_CLEANUP,FIX_MESSAGE,REPLAY,FIXP_SESSION,FIXP_BUSINESS -Dfix.core.ci=true" | ||
ADD . artio-src | ||
WORKDIR artio-src | ||
ENTRYPOINT ./gradlew clean test |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,7 +216,7 @@ private void assertTriggersCancelOnDisconnect(final long logoutTimeInNs) | |
assertEquals(onlySession.key(), result.context.key()); | ||
final long timeoutTakenInNs = result.timeInNs - logoutTimeInNs; | ||
assertThat(timeoutTakenInNs, greaterThanOrEqualTo(codTimeoutInNs)); | ||
assertEquals(1, timeoutHandler.invokeCount()); | ||
testSystem.await("timeoutHandler.invokeCount() is not 1", () -> 1 == timeoutHandler.invokeCount()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this fails you will lose the actual invokeCount. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as I said privately I'd prefer refactoring this await method later on as it's being used in a bunch of tests - for now i'm just reusing it. |
||
} | ||
|
||
class FakeTimeoutHandler implements FixPCancelOnDisconnectTimeoutHandler | ||
|
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.
Why this instead of a regular
MessageHeaderDecoder
?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.
this is what the
JsonPrinter.print
method uses. I've just reproduced the issue and it happens when we runshouldDisconnectConnectionWhenOutOfRangeTemplateIdUsed()
test with FIX_TEST log tag enabled.