Skip to content

Commit cac6050

Browse files
committed
improve merge
1 parent be419a4 commit cac6050

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

src/test/smoke/functional.smoke.test.ts

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,16 @@ suite('Smoke: Functional Checks', function () {
3939
assert.ok(api, 'API not exported');
4040

4141
// Wait for environment managers to register (happens async in setImmediate)
42-
// This may fail in CI if the pet binary is not available
42+
// This will fail if the pet binary is not available - which is correct behavior
4343
const result = await waitForApiReady(api, 45_000);
44-
managersReady = result.ready;
45-
if (!result.ready) {
46-
console.log(`[WARN] Managers not ready: ${result.error}`);
47-
console.log('[WARN] Tests requiring managers will be skipped');
48-
}
44+
assert.ok(result.ready, `Environment managers failed to initialize: ${result.error}`);
4945
});
5046

5147
// =========================================================================
5248
// ENVIRONMENT DISCOVERY - Core feature must work
5349
// =========================================================================
5450

5551
test('getEnvironments returns an array', async function () {
56-
// Skip if managers aren't ready (e.g., pet binary not available in CI)
57-
if (!managersReady) {
58-
this.skip();
59-
return;
60-
}
61-
6252
// This test verifies discovery machinery works
6353
// Even if no Python is installed, it should return an empty array, not throw
6454

@@ -68,27 +58,10 @@ suite('Smoke: Functional Checks', function () {
6858
});
6959

7060
test('getEnvironments finds Python installations when available', async function () {
71-
// Skip if managers aren't ready (e.g., pet binary not available in CI)
72-
if (!managersReady) {
73-
this.skip();
74-
return;
75-
}
76-
77-
// Skip this test if no Python is expected (CI without Python)
78-
if (process.env.SKIP_PYTHON_TESTS) {
79-
this.skip();
80-
return;
81-
}
82-
8361
const environments = await api.getEnvironments('all');
8462

85-
// On a typical dev machine, we expect at least one Python
86-
// This test may need to be conditional based on CI environment
87-
if (environments.length === 0) {
88-
console.log('[WARN] No Python environments found - is Python installed?');
89-
// Don't fail - just warn. CI may not have Python.
90-
return;
91-
}
63+
// CI should have Python installed, so we expect at least one environment
64+
assert.ok(environments.length > 0, 'Expected at least one Python environment - is Python installed?');
9265

9366
// Verify environment structure
9467
const env = environments[0];

0 commit comments

Comments
 (0)