Skip to content

Commit

Permalink
Fix tests by waiting for mongoose/mongodb to disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-victor committed May 14, 2018
1 parent d0f3676 commit 03629a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generators/app/templates/test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ beforeAll(async () => {
})
})

afterAll(() => {
mongoose.disconnect()
mongoServer.stop()
afterAll(async () => {
await mongoose.disconnect()
await mongoServer.stop()
})

afterEach(async () => {
Expand Down

0 comments on commit 03629a2

Please sign in to comment.