protected SrmDocument Wait() { int revision = WaitRevision; var newDocument = _document; do { newDocument = _waitForLoaded ? AbstractFunctionalTest.WaitForDocumentChangeLoaded(newDocument, _waitMillis) : AbstractFunctionalTest.WaitForDocumentChange(newDocument); }while (newDocument.RevisionIndex < revision); return(newDocument); }
protected SrmDocument Wait() { int revision = WaitRevision; var newDocument = _document; do { newDocument = _waitForLoaded ? AbstractFunctionalTest.WaitForDocumentChangeLoaded(newDocument, _waitMillis) : AbstractFunctionalTest.WaitForDocumentChange(newDocument); } // Unlogged changes can cause a lack of document revision increment while (_revisionIncrement.HasValue && newDocument.RevisionIndex < revision); return(newDocument); }