ci.maven icon indicating copy to clipboard operation
ci.maven copied to clipboard

Update the Integration Tests to wait for dev mode to start completely

Open turkeylurkey opened this issue 3 years ago • 1 comments

In the dev-it bucket the tests wait for dev mode to start using the line:

verifyLogMessageExists("Liberty is running in dev mode."

Unfortunately after dev mode prints this message it continues to compile the app and test source and also registers directories to detect file changes. Tests which depend on compilation or file changes must wait for this extra work to complete.

The tests should add a line to wait for "Source compilation was successful" and also a bit longer for the directory registration to complete. Potentially dev mode could give an additional indication directory registration is complete.

BaseDevTest and DevTest are affected by this issue.

This change may cause some of the existing tests to be modified.

turkeylurkey avatar Jun 21 '22 20:06 turkeylurkey

Related, getLogTail(logFile) logic runs before the log exist, while dev mode is just starting up. See https://github.com/OpenLiberty/ci.maven/pull/1570#issuecomment-1209746739

kathrynkodama avatar Aug 10 '22 13:08 kathrynkodama