Project

General

Profile

« Previous | Next » 

Revision 5206

Added by daigle about 14 years ago

add delay in insertSpatialDocs test to avoid buildIndex conflict

View differences:

test/edu/ucsb/nceas/metacattest/client/MetacatClientTest.java
92 92
    private String testdocument = "";
93 93
    private Metacat m;
94 94
    private String spatialTestFile = "test/spatialEml.xml";
95
    private static final int TIME = 30;
95
    private static final int TIME = 5;
96 96
    private static final String DOCID = "docid";
97 97
    private static final String DATAID = "dataid";
98 98
    
......
781 781
    	for (int i=0; i<TIME; i++)
782 782
    	{
783 783
	    	try {
784
	    		Thread.sleep(20000);
784 785
	    		newdocid = generateDocid();
785 786
	            String identifier = newdocid + ".1";
786 787
	            debug("insertSpatialDocs(): the docid is "+identifier);
......
789 790
	                    new StringReader(spatialtestdocument), null);
790 791
	            assertTrue(response.indexOf("<success>") != -1);
791 792
	            assertTrue(response.indexOf(identifier) != -1);
792
	            Thread.sleep(8000);
793
	            Thread.sleep(20000);
793 794
	            identifier = newdocid +".2";
794 795
	            response = m.update(identifier,
795 796
	                    new StringReader(spatialtestdocument), null);
796 797
	            assertTrue(response.indexOf("<success>") != -1);
797
	            Thread.sleep(6000);
798
	            Thread.sleep(20000);
798 799
	            String response2 = m.delete(identifier);
799 800
	            assertTrue(response2.indexOf("<success>") != -1);
800 801
	            debug("insertSpatialDocs(): response=" + response);

Also available in: Unified diff