Skip to content

Commit 40eae06

Browse files
committed
fix: Enable one of the disabled tests
1 parent acdeb77 commit 40eae06

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

test/orchestrator/connect/socket-server.test.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -161,33 +161,33 @@ describe('Connect orchestrator tests', () => {
161161
// });
162162
// });
163163
//
164-
// it('Can handle a new action session (plan)', async () => {
165-
// const reporter = new MockReporter();
166-
// await fakeLogin();
167-
// await mkdir(os.tmpdir(), { recursive: true });
168-
//
169-
// await new Promise<void>((done) => {
170-
// startSession(reporter, async (connectionCode, clientId, server, socket, sessionId) => {
171-
// const commandResponse = await fetch(`http://localhost:${config.connectServerPort}/plan/${sessionId}/start`, {
172-
// method: 'POST',
173-
// headers: { 'Authorization': `${connectionCode}`, 'Content-Type': 'application/json' },
174-
// body: JSON.stringify({
175-
// config: [
176-
// {
177-
// type: 'homebrew',
178-
// formulae: ['zsh']
179-
// }
180-
// ]
181-
// })
182-
// });
183-
//
184-
// expect(commandResponse.ok).to.be.true;
185-
//
186-
// server.close();
187-
// done();
188-
// });
189-
// });
190-
// });
164+
it('Can handle a new action session (plan)', async () => {
165+
const reporter = new MockReporter();
166+
await fakeLogin();
167+
await mkdir(os.tmpdir(), { recursive: true });
168+
169+
await new Promise<void>((done) => {
170+
startSession(reporter, async (connectionCode, clientId, server, socket, sessionId) => {
171+
const commandResponse = await fetch(`http://localhost:${config.connectServerPort}/plan/${sessionId}/start`, {
172+
method: 'POST',
173+
headers: { 'Authorization': `${connectionCode}`, 'Content-Type': 'application/json' },
174+
body: JSON.stringify({
175+
config: [
176+
{
177+
type: 'homebrew',
178+
formulae: ['zsh']
179+
}
180+
]
181+
})
182+
});
183+
184+
expect(commandResponse.ok).to.be.true;
185+
186+
server.close();
187+
done();
188+
});
189+
});
190+
});
191191
//
192192
// it('Can handle a new action session (apply)', async () => {
193193
// const reporter = new MockReporter();

0 commit comments

Comments
 (0)