mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
Destroy buffer to avoid leaking a path watch
This commit is contained in:
parent
ce82439420
commit
ac84a8ab0a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user