From 58d8a5043b4ec5c90fdb9071ea3a66e4898f4b53 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 5 Apr 2024 18:36:40 +0200 Subject: [PATCH] test flaky test on github --- test/backend/integration/routers/admin/SettingsRouter.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/backend/integration/routers/admin/SettingsRouter.ts b/test/backend/integration/routers/admin/SettingsRouter.ts index 4808edc9..222433e4 100644 --- a/test/backend/integration/routers/admin/SettingsRouter.ts +++ b/test/backend/integration/routers/admin/SettingsRouter.ts @@ -48,9 +48,7 @@ describe('SettingsRouter', () => { attachVolatile: true, skipTags: {secret: true} as TAGS }))); - //TODO: fix broken test. - // It breaks if config. sets value through constructor -/* + const result = await chai.request(server.Server) .get(Config.Server.apiPath + '/settings'); @@ -58,7 +56,7 @@ describe('SettingsRouter', () => { result.body.should.be.a('object'); should.equal(result.body.error, null); (result.body.result as ServerConfig).Environment.upTime = null; - result.body.result.should.deep.equal(originalJSON);*/ + result.body.result.should.deep.equal(originalJSON); }); }); });