jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Smalyshev: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I19cf337b4b5a2e85d799a4033ad5f439458d6160
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/rdf
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits