Skip to content

Commit

Permalink
Commit cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Aug 10, 2023
1 parent 90b8c42 commit 92c10fa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions spec/e2e/authentication.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ describe('Authentication tests', () => {
await testEnv.joinChannelHelper(alice, adminRoomId, channel);
const bridgedClient = await ircBridge.getBridgedClientsForUserId(aliceUserId)[0];
const aliceIrcClient = await bridgedClient.waitForConnected().then(() => bridgedClient.assertConnected());

// Slight gut wrenching to get the fingerprint out.
const getCertResponse = await new Promise((resolve, reject) => {
const timeout = setTimeout(() => reject(new Error('Timed out getting cert response')), 5000);
aliceIrcClient.on('raw', (msg) => {
console.log(msg);
if (msg.rawCommand === '276') {
clearTimeout(timeout);
resolve(msg);
}
});
})
bridgedClient.whois(bridgedClient.nick);
console.log(await getCertResponse);
await getCertResponse;
});
});
1 change: 0 additions & 1 deletion spec/unit/pool-service/IrcClientRedisState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ describe("IrcClientRedisState", () => {
expect(state.loggedIn).toBeTrue();
expect(state.registered).toBeTrue();
expect(state.chans.size).toBe(1);
console.log(state);
});
it('should be able to repair previously buggy state', async () => {
const existingState = {
Expand Down
3 changes: 0 additions & 3 deletions src/datastore/postgres/PgDataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ export class PgDataStore implements DataStore, ProvisioningStore {
const cryptoStore = this.cryptoStore;
if (config.certificate && row.key && cryptoStore) {
try {
console.log(row);
config.certificate.key = await cryptoStore.decryptLargeString(row.key);
}
catch (ex) {
Expand All @@ -562,7 +561,6 @@ export class PgDataStore implements DataStore, ProvisioningStore {
password = this.cryptoStore.encrypt(password);
}

console.log(config.certificate);
if (config.certificate && this.cryptoStore) {
keypair.cert = config.certificate.cert;
keypair.key = await this.cryptoStore.encryptLargeString(config.certificate.key);
Expand All @@ -578,7 +576,6 @@ export class PgDataStore implements DataStore, ProvisioningStore {
};
const statement = PgDataStore.BuildUpsertStatement(
"client_config", "ON CONSTRAINT cons_client_config_unique", Object.keys(parameters));
console.log(statement, parameters);
await this.pgPool.query(statement, Object.values(parameters));
}

Expand Down
1 change: 0 additions & 1 deletion src/irc/ConnectionInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ export class ConnectionInstance {
}

log.debug(saslType ? `Connecting using ${saslType} auth` : 'Connecting without authentication');
console.log(secure);

const connectionOpts: IrcClientOpts = {
userName: opts.username,
Expand Down

0 comments on commit 92c10fa

Please sign in to comment.