diff --git a/src/secrets/runtime-channel-inactive-variants.test.ts b/src/secrets/runtime-channel-inactive-variants.test.ts index e4f2e9da8e0..d0b3c0a950b 100644 --- a/src/secrets/runtime-channel-inactive-variants.test.ts +++ b/src/secrets/runtime-channel-inactive-variants.test.ts @@ -151,9 +151,9 @@ describe("secrets runtime snapshot channel inactive variants", () => { provider: "default", id: "MISSING_SLACK_WORK_APP_TOKEN", }); - expect(snapshot.warnings.map((warning) => warning.path)).toEqual( - expect.arrayContaining(["channels.slack.appToken", "channels.slack.accounts.work.appToken"]), - ); + const warningPaths = snapshot.warnings.map((warning) => warning.path); + expect(warningPaths).toContain("channels.slack.appToken"); + expect(warningPaths).toContain("channels.slack.accounts.work.appToken"); }); it("treats top-level Google Chat serviceAccount as inactive when enabled accounts use serviceAccountRef", async () => {