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

search whole log for messages #29855

Draft
wants to merge 1 commit into
base: integration
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,18 +228,18 @@ public void testDeliveryDelayForDifferentDelaysTopic_B() throws Exception {

runInServlet("testDeliveryDelayForDifferentDelaysTopic");

String msg = clientServer.waitForStringInLogUsingLastOffset("Message received on mdb : TopicBindingsMessage2");
String msg = clientServer.waitForStringInLog("Message received on mdb : TopicBindingsMessage2");
assertNotNull("Could not find the upload message in the trace.log", msg);
msg = clientServer.waitForStringInLogUsingLastOffset("Message received on mdb : TopicBindingsMessage1");
msg = clientServer.waitForStringInLog("Message received on mdb : TopicBindingsMessage1");
assertNotNull("Could not find the upload message in the trace.log", msg);

restartServers(MDB_CONFIG_TOPIC_TCP);

runInServlet("testDeliveryDelayForDifferentDelaysTopic_Tcp");

msg = clientServer.waitForStringInLogUsingLastOffset("Message received on mdb : TopicTCPMessage2");
msg = clientServer.waitForStringInLog("Message received on mdb : TopicTCPMessage2");
assertNotNull("Could not find the upload message in the trace.log", msg);
msg = clientServer.waitForStringInLogUsingLastOffset("Message received on mdb : TopicTCPMessage1");
msg = clientServer.waitForStringInLog("Message received on mdb : TopicTCPMessage1");
assertNotNull("Could not find the upload message in the trace.log", msg);

restartServers();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void onMessage(Message message) {
min.setTimeInMillis( msg.readLong() );

if ( min.before(now) ) {
System.out.println("Message received on mdb : " + text);
System.out.println("Message received on mdb : " + text + " at " + now);

} else {
System.out.println(
Expand Down