From 78a6c60cf5527c7d3331a726abb9da39021bf2bc Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 5 Jul 2024 14:01:58 -0400 Subject: [PATCH] fix: hardcoded tid in topic thumbs test --- test/topics/thumbs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/topics/thumbs.js b/test/topics/thumbs.js index 2c396c7794..e93663ec3e 100644 --- a/test/topics/thumbs.js +++ b/test/topics/thumbs.js @@ -357,7 +357,7 @@ describe('Topic thumbs', () => { }); it('should fail with a non-existant tid', async () => { - const { response } = await helpers.uploadFile(`${nconf.get('url')}/api/v3/topics/4/thumbs`, path.join(__dirname, '../files/test.png'), {}, adminJar, adminCSRF); + const { response } = await helpers.uploadFile(`${nconf.get('url')}/api/v3/topics/${Number.MAX_SAFE_INTEGER}/thumbs`, path.join(__dirname, '../files/test.png'), {}, adminJar, adminCSRF); assert.strictEqual(response.statusCode, 404); });