mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Destroy buffer to avoid leaking a path watch
This commit is contained in:
@@ -143,6 +143,10 @@ describe 'Buffer', ->
|
||||
waitsFor "file to be removed", (done) ->
|
||||
bufferToDelete.file.one 'remove', done
|
||||
|
||||
|
||||
afterEach ->
|
||||
bufferToDelete.destroy()
|
||||
|
||||
it "retains its path and reports the buffer as modified", ->
|
||||
expect(bufferToDelete.getPath()).toBe path
|
||||
expect(bufferToDelete.isModified()).toBeTruthy()
|
||||
|
||||
Reference in New Issue
Block a user