Skip to content
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

fix: fix tests #112

Merged
merged 1 commit into from
May 5, 2023
Merged

fix: fix tests #112

merged 1 commit into from
May 5, 2023

Conversation

dalelane
Copy link
Contributor

@dalelane dalelane commented May 5, 2023

There were two issues preventing the tests from running:

  1. The tests use the 'latest' image tag for MQ - and watch for a particular message code in the log to recognise when the queue manager is ready. Changes in a recent version of MQ meant that the log output has changed, so the tests were waiting forever for a log message that is no longer output.
    I've updated the message code to match the current MQ behaviour.

  2. Fix for a regression that caused a NullPointerException when the MQSourceTaskIT test cleanup method ran - by renaming the locally-scoped SourceTask variable to use the class-scoped variable that the cleanup depends on.

There were two issues preventing the tests from running:

1) The tests use the 'latest' image tag for MQ - and watch for a
particular message code in the log to recognise when the queue
manager is ready. Changes in a recent version of MQ meant that
the log output has changed, so the tests were waiting forever for
a log message that is no longer output.
I've updated the message code to match the current MQ behaviour.

2) Fix for a regression that caused a NullPointerException when
the MQSourceTaskIT test cleanup method ran - by renaming the
locally-scoped SourceTask variable to use the class-scoped
variable that the cleanup depends on.

Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
@dalelane dalelane merged commit 6dd0d47 into master May 5, 2023
2 checks passed
@dalelane dalelane deleted the fix-tests branch May 5, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant