Smalyshev has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/250468

Change subject: Move delay to getRecentChanges
......................................................................

Move delay to getRecentChanges

Change-Id: I5a8c826fb730fd8be653d5fc46c89cf35f5f9b68
---
M 
tools/src/test/java/org/wikidata/query/rdf/tool/wikibase/WikibaseRepositoryIntegrationTest.java
1 file changed, 6 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/rdf 
refs/changes/68/250468/1

diff --git 
a/tools/src/test/java/org/wikidata/query/rdf/tool/wikibase/WikibaseRepositoryIntegrationTest.java
 
b/tools/src/test/java/org/wikidata/query/rdf/tool/wikibase/WikibaseRepositoryIntegrationTest.java
index d66d158..4c18ac3 100644
--- 
a/tools/src/test/java/org/wikidata/query/rdf/tool/wikibase/WikibaseRepositoryIntegrationTest.java
+++ 
b/tools/src/test/java/org/wikidata/query/rdf/tool/wikibase/WikibaseRepositoryIntegrationTest.java
@@ -94,6 +94,12 @@
 
     private JSONArray getRecentChanges(Date date, JSONObject contObj, int 
batchSize) throws RetryableException,
         ContainedException {
+        // Add a bit of a wait to try and improve Jenkins test stability.
+        try {
+            Thread.sleep(1000);
+        } catch (InterruptedException e) {
+            // nothing to do here, sorry. I know it looks bad.
+        }
         JSONObject result = repo.fetchRecentChanges(date, contObj, batchSize);
         return (JSONArray) ((JSONObject) 
result.get("query")).get("recentchanges");
     }
@@ -104,13 +110,6 @@
         long now = System.currentTimeMillis();
         String entityId = repo.firstEntityIdForLabelStartingWith(label, "en", 
type);
         repo.setLabel(entityId, type, label + now, "en");
-        // Add a bit of a wait to try and improve Jenkins test stability.
-        try {
-            Thread.sleep(1000);
-        } catch (InterruptedException e) {
-            // nothing to do here, sorry. I know it looks bad.
-        }
-
         JSONArray changes = getRecentChanges(new Date(now - 10000), null, 10);
         boolean found = false;
         String title = entityId;

-- 
To view, visit https://gerrit.wikimedia.org/r/250468
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a8c826fb730fd8be653d5fc46c89cf35f5f9b68
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/rdf
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to