jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/403637 )

Change subject: Dev: send no-cache header with diff test requests
......................................................................


Dev: send no-cache header with diff test requests

Hopefully this will reduce the disruption caused by things like template
changes.

Change-Id: Ib3c7132d4f47c34ce50a8cdb4f361c5adb267bcc
---
M test/diff/diff.js
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  BearND: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/test/diff/diff.js b/test/diff/diff.js
index dc3075f..85ff7d9 100644
--- a/test/diff/diff.js
+++ b/test/diff/diff.js
@@ -49,7 +49,8 @@
         // Verify step:
         for (const spec of testSpec.TEST_SPECS) {
             it(`${spec.testName()}`, () => {
-                return preq.get({ uri: buildUri(spec.uriPath()) })
+                return preq.get({ uri: buildUri(spec.uriPath()),
+                                  headers: 'cache-control: no-cache' })
                            .then((rsp) => {
                                const content = 
fs.readFileSync(spec.filePath(), 'utf8');
                                spec.postProcessing(rsp);

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib3c7132d4f47c34ce50a8cdb4f361c5adb267bcc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Ppchelko <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to