diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-16 10:10:41 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-16 10:39:35 +0100 |
| commit | 092b9606ff2b721d858a5c7b2b27a2f9942b4bc4 (patch) | |
| tree | 29022aee83ac0460098dfdbd4362ef75388c4ea7 /tests/ngit_login.rs | |
| parent | 6e041a3626f04e591d5c22f71d3e4ab2b03bd7bb (diff) | |
chore: nix flake update
required running:
`cargo fix --allow-dirty --allow-staged`
`cargo clippy --fix --allow-dirty -- -D warnings`
to fix problems
and then manually fixing some too
Diffstat (limited to 'tests/ngit_login.rs')
| -rw-r--r-- | tests/ngit_login.rs | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/ngit_login.rs b/tests/ngit_login.rs index b1e2676..09e40f1 100644 --- a/tests/ngit_login.rs +++ b/tests/ngit_login.rs | |||
| @@ -110,9 +110,7 @@ mod with_relays { | |||
| 110 | 110 | ||
| 111 | p.expect("failed to extract account name from account metadata...\r\n")?; | 111 | p.expect("failed to extract account name from account metadata...\r\n")?; |
| 112 | 112 | ||
| 113 | p.expect_end_with( | 113 | p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str())?; |
| 114 | format!("logged in as {}\r\n", TEST_KEY_1_NPUB).as_str(), | ||
| 115 | )?; | ||
| 116 | for p in [51, 52] { | 114 | for p in [51, 52] { |
| 117 | shutdown_relay(8000 + p)?; | 115 | shutdown_relay(8000 + p)?; |
| 118 | } | 116 | } |
| @@ -572,7 +570,7 @@ mod with_offline_flag { | |||
| 572 | 570 | ||
| 573 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; | 571 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; |
| 574 | 572 | ||
| 575 | p.expect_end_with(format!("logged in as {}\r\n", TEST_KEY_1_NPUB).as_str()) | 573 | p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str()) |
| 576 | } | 574 | } |
| 577 | 575 | ||
| 578 | #[test] | 576 | #[test] |
| @@ -587,7 +585,7 @@ mod with_offline_flag { | |||
| 587 | 585 | ||
| 588 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; | 586 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; |
| 589 | 587 | ||
| 590 | p.expect_end_with(format!("logged in as {}\r\n", TEST_KEY_1_NPUB).as_str()) | 588 | p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str()) |
| 591 | } | 589 | } |
| 592 | 590 | ||
| 593 | mod when_invalid_nsec { | 591 | mod when_invalid_nsec { |
| @@ -621,7 +619,7 @@ mod with_offline_flag { | |||
| 621 | 619 | ||
| 622 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; | 620 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; |
| 623 | 621 | ||
| 624 | p.expect_end_with(format!("logged in as {}\r\n", TEST_KEY_1_NPUB).as_str()) | 622 | p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str()) |
| 625 | } | 623 | } |
| 626 | } | 624 | } |
| 627 | } | 625 | } |
| @@ -643,7 +641,7 @@ mod with_offline_flag { | |||
| 643 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; | 641 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; |
| 644 | 642 | ||
| 645 | p.expect_end_with( | 643 | p.expect_end_with( |
| 646 | format!("logged in as {} via cli arguments\r\n", TEST_KEY_1_NPUB).as_str(), | 644 | format!("logged in as {TEST_KEY_1_NPUB} via cli arguments\r\n").as_str(), |
| 647 | ) | 645 | ) |
| 648 | } | 646 | } |
| 649 | 647 | ||
| @@ -682,7 +680,7 @@ mod with_offline_flag { | |||
| 682 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; | 680 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; |
| 683 | 681 | ||
| 684 | p.expect_end_with( | 682 | p.expect_end_with( |
| 685 | format!("logged in as {} via cli arguments\r\n", TEST_KEY_1_NPUB).as_str(), | 683 | format!("logged in as {TEST_KEY_1_NPUB} via cli arguments\r\n").as_str(), |
| 686 | ) | 684 | ) |
| 687 | } | 685 | } |
| 688 | 686 | ||
| @@ -701,7 +699,7 @@ mod with_offline_flag { | |||
| 701 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; | 699 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; |
| 702 | 700 | ||
| 703 | p.expect_end_with( | 701 | p.expect_end_with( |
| 704 | format!("logged in as {} via cli arguments\r\n", TEST_KEY_1_NPUB).as_str(), | 702 | format!("logged in as {TEST_KEY_1_NPUB} via cli arguments\r\n").as_str(), |
| 705 | ) | 703 | ) |
| 706 | } | 704 | } |
| 707 | 705 | ||
| @@ -724,7 +722,7 @@ mod with_offline_flag { | |||
| 724 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; | 722 | p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; |
| 725 | 723 | ||
| 726 | p.expect_end_with( | 724 | p.expect_end_with( |
| 727 | format!("logged in as {} via cli arguments\r\n", TEST_KEY_2_NPUB).as_str(), | 725 | format!("logged in as {TEST_KEY_2_NPUB} via cli arguments\r\n").as_str(), |
| 728 | ) | 726 | ) |
| 729 | } | 727 | } |
| 730 | } | 728 | } |