mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Wrap temp.cleanupSync() calls in try-catch blocks
This commit is contained in:
@@ -9,7 +9,13 @@ const {Disposable} = require('event-kit')
|
||||
const {it, fit, ffit, fffit, beforeEach, afterEach} = require('./async-spec-helpers')
|
||||
|
||||
describe('WorkspaceElement', () => {
|
||||
afterEach(() => { temp.cleanupSync() })
|
||||
afterEach(() => {
|
||||
try {
|
||||
temp.cleanupSync()
|
||||
} catch (e) {
|
||||
// Do nothing
|
||||
}
|
||||
})
|
||||
|
||||
describe('when the workspace element is focused', () => {
|
||||
it('transfers focus to the active pane', () => {
|
||||
|
||||
Reference in New Issue
Block a user