Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_installation_idempotency #5699

Merged
merged 3 commits into from
Jan 17, 2024
Merged

Fix test_installation_idempotency #5699

merged 3 commits into from
Jan 17, 2024

Conversation

dlon
Copy link
Member

@dlon dlon commented Jan 17, 2024

The test currently fails when the daemon is not logged in. This always happens since test_login runs after this test.

This PR fixes it by failing whenever the daemon starts in the disconnected state instead.

Close DES-565.


This change is Reviewable

Copy link

linear bot commented Jan 17, 2024

@dlon dlon force-pushed the testing-fix-idempotency-test branch from 84aa496 to 14096b9 Compare January 17, 2024 09:49
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dlon)


test/test-manager/src/tests/install.rs line 293 at r2 (raw file):

        .set_auto_connect(false)
        .await
        .expect("failed to enable auto-connect");

Why not manually set auto connect to false anymore? It is explicitly mentioned in the changelog entry and the doc-comment after all 😊

Code quote:

    // Disable auto-connect
    mullvad_client
        .set_auto_connect(false)
        .await
        .expect("failed to enable auto-connect");

@dlon dlon force-pushed the testing-fix-idempotency-test branch from 14096b9 to 303c8d2 Compare January 17, 2024 10:37
Copy link
Member Author

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @MarkusPettersson98)


test/test-manager/src/tests/install.rs line 293 at r2 (raw file):

Previously, MarkusPettersson98 (Markus Pettersson) wrote…

Why not manually set auto connect to false anymore? It is explicitly mentioned in the changelog entry and the doc-comment after all 😊

Done!

Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


test/test-manager/src/tests/install.rs line 293 at r2 (raw file):

Previously, dlon (David Lönnhager) wrote…

Done!

🙌

@dlon dlon merged commit b3898cf into main Jan 17, 2024
28 checks passed
@dlon dlon deleted the testing-fix-idempotency-test branch January 17, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants