Skip to content

Commit eb0bf05

Browse files
committed
Add more debug messages and fix check
1 parent 7eb939b commit eb0bf05

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

packages/compass-smoke-tests/src/tests/auto-update-from.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export async function testAutoUpdateFrom(context: SmokeTestsContext) {
2222

2323
const install = getInstaller(kind);
2424

25+
debug('Installing');
2526
const { appName, appPath, uninstall } = install({
2627
...subject,
2728
filepath,
@@ -40,6 +41,7 @@ export async function testAutoUpdateFrom(context: SmokeTestsContext) {
4041
const HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE = `http://localhost:${port}`;
4142

4243
try {
44+
debug('Executing');
4345
// must be async because the update server is running in the same process
4446
await executeAsync(
4547
'npm',
@@ -71,6 +73,7 @@ export async function testAutoUpdateFrom(context: SmokeTestsContext) {
7173
delete process.env.UPDATE_CHECKER_ALLOW_DOWNGRADES;
7274
}
7375
} finally {
76+
debug('Uninstalling');
7477
await uninstall();
7578
}
7679
}

packages/compass-smoke-tests/src/tests/auto-update-to.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import assert from 'node:assert/strict';
2-
import fs from 'node:fs';
32
import createDebug from 'debug';
43
import { type SmokeTestsContext } from '../context';
54
import { getInstaller } from '../installers';
@@ -40,6 +39,7 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
4039
context.forceDownload
4140
);
4241

42+
debug('Installing');
4343
const { appPath, appName, uninstall } = install({
4444
...latestApp,
4545
filepath,
@@ -72,6 +72,7 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
7272
const HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE = `http://localhost:${port}`;
7373

7474
try {
75+
debug('Executing');
7576
// must be async because the update server is running in the same process
7677
await executeAsync(
7778
'npm',
@@ -106,6 +107,7 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
106107
delete process.env.UPDATE_CHECKER_ALLOW_DOWNGRADES;
107108
}
108109
} finally {
110+
debug('Uninstalling');
109111
await uninstall();
110112
}
111113
}

packages/compass-smoke-tests/src/tests/time-to-first-query.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fs from 'node:fs';
21
import createDebug from 'debug';
32
import { type SmokeTestsContext } from '../context';
43
import { execute } from '../execute';
@@ -18,12 +17,14 @@ export async function testTimeToFirstQuery(context: SmokeTestsContext) {
1817

1918
const install = getInstaller(kind);
2019

20+
debug('Installing');
2121
const { appPath, appName, uninstall } = install({
2222
...subject,
2323
sandboxPath,
2424
});
2525

2626
try {
27+
debug('Executing');
2728
execute(
2829
'npm',
2930
[
@@ -46,6 +47,7 @@ export async function testTimeToFirstQuery(context: SmokeTestsContext) {
4647
}
4748
);
4849
} finally {
50+
debug('Uninstalling');
4951
await uninstall();
5052
}
5153
}

0 commit comments

Comments
 (0)