diff options
Diffstat (limited to 'tests/login.rs')
| -rw-r--r-- | tests/login.rs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/tests/login.rs b/tests/login.rs index 4cc2dbe..3bcfbf9 100644 --- a/tests/login.rs +++ b/tests/login.rs | |||
| @@ -73,7 +73,7 @@ mod with_relays { | |||
| 73 | 73 | ||
| 74 | p.expect("saved login details to local git config\r\n")?; | 74 | p.expect("saved login details to local git config\r\n")?; |
| 75 | 75 | ||
| 76 | p.expect("searching for profile and relay updates...\r\n")?; | 76 | p.expect("searching for profile...\r\n")?; |
| 77 | 77 | ||
| 78 | p.expect_end_with("logged in as fred\r\n")?; | 78 | p.expect_end_with("logged in as fred\r\n")?; |
| 79 | for p in [51, 52] { | 79 | for p in [51, 52] { |
| @@ -113,7 +113,7 @@ mod with_relays { | |||
| 113 | 113 | ||
| 114 | p.expect("saved login details to local git config\r\n")?; | 114 | p.expect("saved login details to local git config\r\n")?; |
| 115 | 115 | ||
| 116 | p.expect("searching for profile and relay updates...\r\n")?; | 116 | p.expect("searching for profile...\r\n")?; |
| 117 | 117 | ||
| 118 | p.expect("cannot extract account name from account metadata...\r\n")?; | 118 | p.expect("cannot extract account name from account metadata...\r\n")?; |
| 119 | 119 | ||
| @@ -422,7 +422,7 @@ mod with_relays { | |||
| 422 | 422 | ||
| 423 | p.expect("saved login details to local git config\r\n")?; | 423 | p.expect("saved login details to local git config\r\n")?; |
| 424 | 424 | ||
| 425 | p.expect("searching for profile and relay updates...\r\n")?; | 425 | p.expect("searching for profile...\r\n")?; |
| 426 | 426 | ||
| 427 | p.expect_end_with("logged in as fred\r\n")?; | 427 | p.expect_end_with("logged in as fred\r\n")?; |
| 428 | for p in [51, 52] { | 428 | for p in [51, 52] { |
| @@ -489,7 +489,7 @@ mod with_relays { | |||
| 489 | ["login", "--password", TEST_PASSWORD], | 489 | ["login", "--password", TEST_PASSWORD], |
| 490 | ); | 490 | ); |
| 491 | 491 | ||
| 492 | p.expect("searching for profile and relay updates...\r\n")?; | 492 | p.expect("searching for profile...\r\n")?; |
| 493 | 493 | ||
| 494 | p.expect_end_with("logged in as fred\r\n")?; | 494 | p.expect_end_with("logged in as fred\r\n")?; |
| 495 | for p in [51, 52] { | 495 | for p in [51, 52] { |
| @@ -551,7 +551,7 @@ mod with_relays { | |||
| 551 | 551 | ||
| 552 | p.expect("saved login details to local git config\r\n")?; | 552 | p.expect("saved login details to local git config\r\n")?; |
| 553 | 553 | ||
| 554 | p.expect("searching for profile and relay updates...\r\n")?; | 554 | p.expect("searching for profile...\r\n")?; |
| 555 | 555 | ||
| 556 | p.expect_end_with("logged in as fred\r\n")?; | 556 | p.expect_end_with("logged in as fred\r\n")?; |
| 557 | for p in [51, 52] { | 557 | for p in [51, 52] { |
| @@ -602,9 +602,9 @@ mod with_relays { | |||
| 602 | 602 | ||
| 603 | p.expect("saved login details to local git config\r\n")?; | 603 | p.expect("saved login details to local git config\r\n")?; |
| 604 | 604 | ||
| 605 | p.expect("searching for profile and relay updates...\r\n")?; | 605 | p.expect("searching for profile...\r\n")?; |
| 606 | 606 | ||
| 607 | p.expect("cannot find your account metadata (name, etc) on relays\r\n")?; | 607 | p.expect("cannot find profile...\r\n")?; |
| 608 | 608 | ||
| 609 | p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str())?; | 609 | p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str())?; |
| 610 | for p in [51, 52] { | 610 | for p in [51, 52] { |
| @@ -665,7 +665,7 @@ mod with_relays { | |||
| 665 | 665 | ||
| 666 | p.expect("saved login details to local git config\r\n")?; | 666 | p.expect("saved login details to local git config\r\n")?; |
| 667 | 667 | ||
| 668 | p.expect("searching for profile and relay updates...\r\n")?; | 668 | p.expect("searching for profile...\r\n")?; |
| 669 | 669 | ||
| 670 | p.expect("cannot find your relay list. consider using another nostr client to create one to enhance your nostr experience.\r\n")?; | 670 | p.expect("cannot find your relay list. consider using another nostr client to create one to enhance your nostr experience.\r\n")?; |
| 671 | 671 | ||
| @@ -743,8 +743,6 @@ mod with_relays { | |||
| 743 | ["login", "--password", TEST_PASSWORD], | 743 | ["login", "--password", TEST_PASSWORD], |
| 744 | ); | 744 | ); |
| 745 | 745 | ||
| 746 | p.expect("searching for profile and relay updates...\r\n")?; | ||
| 747 | |||
| 748 | p.expect_end_eventually_with("logged in as fred\r\n")?; | 746 | p.expect_end_eventually_with("logged in as fred\r\n")?; |
| 749 | 747 | ||
| 750 | Ok(()) | 748 | Ok(()) |
| @@ -790,7 +788,7 @@ mod with_relays { | |||
| 790 | 788 | ||
| 791 | p.expect("saved login details to local git config\r\n")?; | 789 | p.expect("saved login details to local git config\r\n")?; |
| 792 | 790 | ||
| 793 | p.expect("searching for profile and relay updates...\r\n")?; | 791 | p.expect("searching for profile...\r\n")?; |
| 794 | 792 | ||
| 795 | p.expect_end_with("logged in as fred\r\n")?; | 793 | p.expect_end_with("logged in as fred\r\n")?; |
| 796 | for p in [51, 52, 53, 55] { | 794 | for p in [51, 52, 53, 55] { |