         callback(0, '["boop"]', '')
         onWillThrowError: ->
 
-      packageManager.loadOutdated ->
+      packageManager.loadOutdated false, ->
       expect(packageManager.apmCache.loadOutdated.value).toMatch(['boop'])
 
-      packageManager.loadOutdated ->
+      packageManager.loadOutdated false, ->
       expect(packageManager.runCommand.calls.length).toBe(1)
 
 

        callback(0, '["boop"]', '')
        onWillThrowError: ->

      packageManager.loadOutdated ->
      now = Date.now()
      spyOn(Date, 'now').andReturn((-> now + packageManager.CACHE_EXPIRY + 1)())
      packageManager.loadOutdated ->

      expect(packageManager.runCommand.calls.length).toBe(2)


    spyOn(atom.packages, 'unloadPackage').andReturn(true)
    spyOn(atom.packages, 'loadPackage').andReturn(true)

    packageManager.loadOutdated false, ->
    expect(packageManager.runCommand.calls.length).toBe(0)

    packageManager.update {}, {}, -> # +1 runCommand call to update the package
    packageManager.loadOutdated false, -> # +1 runCommand call to load outdated because the cache should be wiped
    expect(packageManager.runCommand.calls.length).toBe(2)

    packageManager.install {}, -> # +1 runCommand call to install the package
    packageManager.loadOutdated false, -> # +1 runCommand call to load outdated because the cache should be wiped
    expect(packageManager.runCommand.calls.length).toBe(4)

    packageManager.loadOutdated false, -> # +0 runCommand call, should be cached
    expect(packageManager.runCommand.calls.length).toBe(4)
