mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use a queue to prevent concurrent async writeFile calls
This commit is contained in:
@@ -177,13 +177,11 @@ describe('Config', () => {
|
||||
|
||||
it("saves the user's config to disk after it stops changing", () => {
|
||||
atom.config.set('foo.bar.baz', 42)
|
||||
advanceClock(50)
|
||||
expect(savedSettings.length).toBe(0)
|
||||
atom.config.set('foo.bar.baz', 43)
|
||||
advanceClock(50)
|
||||
expect(savedSettings.length).toBe(0)
|
||||
atom.config.set('foo.bar.baz', 44)
|
||||
advanceClock(150)
|
||||
advanceClock(10)
|
||||
expect(savedSettings.length).toBe(1)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user