Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

squirrel-update-spec not really testing desktop shortcut #8789

Closed

Description

@BrainCrumbz

It looks like test keeps the desktop shortcut deleted on updates if it was previously deleted in squirrel-update-spec is not really doing its job.

We tried removing a meaningful bit of functionality in code under test (see
this commit) and the test still passes.

Now having a look at possible cause. Probably that's because the ChildProcess is being mocked too much here. Or, maybe there's no test really checking that desktop shortcut is created in the first place? (otherwise expectation on line #82 should fail).

Is this test behavior intended?

Activity

  1. winstliu commented on Sep 15, 2015

    @winstliu
    Contributor

    I can confirm that the desktop shortcut is in fact coming back every update, and it is pretty annoying.

  2. added
    windows
    on Sep 15, 2015
  3. BrainCrumbz commented on Sep 15, 2015

    @BrainCrumbz
    ContributorAuthor

    Although - given the overlap - I'd prefer to take care of this after that PR #8780 gets (?) merged.

  4. BrainCrumbz commented on Sep 15, 2015

    @BrainCrumbz
    ContributorAuthor

    Uhm. Taking my word back, maybe that's a false problem. In this other commit I just skipped the check for existing shortcut, so that it gets always created. Result: the test (correctly) fails.

  5. BrainCrumbz commented on Sep 15, 2015

    @BrainCrumbz
    ContributorAuthor

    Even refactoring spec to make any assertion explicit as in here, desktop shortcut tests still pass.

  6. BrainCrumbz commented on Sep 15, 2015

    @BrainCrumbz
    ContributorAuthor

    Just created PR #8793 to make desktop shortcut tests intent more clear (and they all still pass)

  7. winstliu commented on Sep 24, 2015

    @winstliu
    Contributor

    Closing in favor of #5323.

  8. lock commented on Jan 20, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  9. locked as resolved and limited conversation to collaborators on Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-updaterbugwindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions