Skip to content

Commit

Permalink
chore: save
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 committed Aug 5, 2019
1 parent 841f093 commit 398c0c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions garden-service/test/unit/src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { getConfigFilePath } from "../../../src/util/fs"
import { LinkModuleCommand } from "../../../src/commands/link/module"
import { cleanUp } from "../../../src/watch"
import { LinkSourceCommand } from "../../../src/commands/link/source"
import { sleep } from "../../../src/util/util"

function emitEvent(garden: TestGarden, name: string, payload: any) {
garden["watcher"]["watcher"].emit(name, payload)
Expand Down Expand Up @@ -254,6 +255,7 @@ describe("Watcher", () => {
// so the user will always have a new instance of Garden when they run their next command.
garden = await makeExtModuleSourcesGarden()
await garden.startWatcher(await garden.getConfigGraph())
await sleep(100)
})

beforeEach(() => {
Expand Down Expand Up @@ -321,6 +323,7 @@ describe("Watcher", () => {
// so the user will always have a new instance of Garden when they run their next command.
garden = await makeExtProjectSourcesGarden()
await garden.startWatcher(await garden.getConfigGraph())
await sleep(100)
})

beforeEach(() => {
Expand Down

0 comments on commit 398c0c5

Please sign in to comment.