Mholloway has uploaded a new change for review. (
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps
refs/changes/37/403637/1
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: newchange
Gerrit-Change-Id: Ib3c7132d4f47c34ce50a8cdb4f361c5adb267bcc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits