keytrans: Stop falling back to search if _self_ monitor detects a new version

This commit is contained in:
moiseev-signal
2025-08-11 15:34:01 -07:00
committed by GitHub
parent fafd64246f
commit b53ed51263
14 changed files with 306 additions and 184 deletions

View File

@@ -17,6 +17,7 @@ import {
LibSignalErrorBase,
} from '../Errors';
import * as KT from '../net/KeyTransparency';
import { MonitorMode } from '../net/KeyTransparency';
use(chaiAsPromised);
@@ -52,6 +53,7 @@ const testRequest = {
unidentifiedAccessKey: testUnidentifiedAccessKey,
},
usernameHash: testUsernameHash,
mode: MonitorMode.Other,
};
describe('KeyTransparency bridging', () => {
@@ -83,6 +85,9 @@ describe('KeyTransparency bridging', () => {
});
describe('KeyTransparency Integration', function (this: Mocha.Suite) {
// Avoid timing out due to slow network or KT environment
this.timeout(5000);
before(() => {
if (!process.env.LIBSIGNAL_TESTING_RUN_NONHERMETIC_TESTS) {
this.ctx.skip();