Smalyshev has uploaded a new change for review.

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

Change subject: Add a bit of a wait to try and improve Jenkins test stability.
......................................................................

Add a bit of a wait to try and improve Jenkins test stability.

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


  git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/rdf 
refs/changes/64/250464/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 36b0d7c..d66d158 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
@@ -104,6 +104,13 @@
         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/250464
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I19cf337b4b5a2e85d799a4033ad5f439458d6160
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