Skip to content

Commit

Permalink
removed worker desktop tests (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas authored Nov 26, 2024
1 parent 7629cea commit 9cce3f4
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 119 deletions.
28 changes: 0 additions & 28 deletions test/03-worker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ const workerDestroyFromChild = path.join(Helper.localDir, 'test', 'fixtures', 'w
const workerEndFromParent = path.join(Helper.localDir, 'test', 'fixtures', 'worker-end-from-parent')
const workerDestroyFromParent = path.join(Helper.localDir, 'test', 'fixtures', 'worker-destroy-from-parent')

const workerParentDesktop = path.join(Helper.localDir, 'test', 'fixtures', 'worker-parent-desktop')
const workerEndFromParentDesktop = path.join(Helper.localDir, 'test', 'fixtures', 'worker-end-from-parent-desktop')
const workerDestroyFromParentDesktop = path.join(Helper.localDir, 'test', 'fixtures', 'worker-destroy-from-parent-desktop')

test('worker pipe', async function ({ is, plan, teardown }) {
plan(1)
const helper = new Helper()
Expand Down Expand Up @@ -134,27 +130,3 @@ test('[terminal] worker exit when parent calls pipe.destroy()', async function (
const { pipe } = await Helper.run({ link: workerDestroyFromParent, args: [workerChild] })
await Helper.untilWorkerExit(pipe)
})

//
// test worker exit gracefully for desktop app
//

test('[desktop] worker exit when child calls pipe.end()', async function () {
const { pipe } = await Helper.run({ link: workerParentDesktop, args: [workerEndFromChild] })
await Helper.untilWorkerExit(pipe)
})

test('[desktop] worker exit when child calls pipe.destroy()', async function () {
const { pipe } = await Helper.run({ link: workerParentDesktop, args: [workerDestroyFromChild] })
await Helper.untilWorkerExit(pipe)
})

test('[desktop] worker exit when parent calls pipe.end()', async function () {
const { pipe } = await Helper.run({ link: workerEndFromParentDesktop, args: [workerChild] })
await Helper.untilWorkerExit(pipe)
})

test('[desktop] worker exit when parent calls pipe.destroy()', async function () {
const { pipe } = await Helper.run({ link: workerDestroyFromParentDesktop, args: [workerChild] })
await Helper.untilWorkerExit(pipe)
})
23 changes: 0 additions & 23 deletions test/fixtures/worker-destroy-from-parent-desktop/app.js

This file was deleted.

2 changes: 0 additions & 2 deletions test/fixtures/worker-destroy-from-parent-desktop/index.html

This file was deleted.

6 changes: 0 additions & 6 deletions test/fixtures/worker-destroy-from-parent-desktop/package.json

This file was deleted.

23 changes: 0 additions & 23 deletions test/fixtures/worker-end-from-parent-desktop/app.js

This file was deleted.

2 changes: 0 additions & 2 deletions test/fixtures/worker-end-from-parent-desktop/index.html

This file was deleted.

6 changes: 0 additions & 6 deletions test/fixtures/worker-end-from-parent-desktop/package.json

This file was deleted.

21 changes: 0 additions & 21 deletions test/fixtures/worker-parent-desktop/app.js

This file was deleted.

2 changes: 0 additions & 2 deletions test/fixtures/worker-parent-desktop/index.html

This file was deleted.

6 changes: 0 additions & 6 deletions test/fixtures/worker-parent-desktop/package.json

This file was deleted.

0 comments on commit 9cce3f4

Please sign in to comment.