[MarkLogic Dev General] Integration tests and how to account for the delays in some document ingestion processes

2012-02-22 Thread David Swearingen
We are testing some of our document ingestion routines, using JUnit and some other libraries, and we need to understand what the best practice is for dealing with the finite amount of time (often tens of seconds) required to ingest successfully, and thus how to somehow delay our assertions (that

Re: [MarkLogic Dev General] Integration tests and how to account for the delays in some document ingestion processes

2012-02-22 Thread Michael Blakeley
I don't understand. If you send an insert via XCC, the XCC call does not return until the insert is complete. If you POST or PUT to an HTTP service, the HTTP call does not return until the insert is complete. Why not simply run your test after the insert call or service call returns? Or is CPF