mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Fixed broken tests
This commit is contained in:
parent
39e0782da8
commit
b62591903d
@ -84,7 +84,7 @@ void cmd_connect_with_altdomain_when_provided(void **state)
|
||||
mock_accounts_get_account();
|
||||
mock_jabber_connect_with_details();
|
||||
CommandHelp *help = malloc(sizeof(CommandHelp));
|
||||
gchar *args[] = { "user@server.org", "altdomain" };
|
||||
gchar *args[] = { "user@server.org", "server", "altdomain", NULL };
|
||||
|
||||
mock_connection_status(JABBER_DISCONNECTED);
|
||||
|
||||
|
@ -111,6 +111,7 @@ jabber_connect_with_username_password_expect_and_return(char *jid,
|
||||
expect_string(_mock_jabber_connect_with_details, jid, jid);
|
||||
expect_string(_mock_jabber_connect_with_details, passwd, password);
|
||||
expect_any(_mock_jabber_connect_with_details, altdomain);
|
||||
expect_any(_mock_jabber_connect_with_details, port);
|
||||
will_return(_mock_jabber_connect_with_details, result);
|
||||
}
|
||||
|
||||
@ -121,6 +122,7 @@ jabber_connect_with_altdomain_expect_and_return(char *altdomain,
|
||||
expect_any(_mock_jabber_connect_with_details, jid);
|
||||
expect_any(_mock_jabber_connect_with_details, passwd);
|
||||
expect_string(_mock_jabber_connect_with_details, altdomain, altdomain);
|
||||
expect_any(_mock_jabber_connect_with_details, port);
|
||||
will_return(_mock_jabber_connect_with_details, result);
|
||||
}
|
||||
|
||||
@ -130,6 +132,7 @@ jabber_connect_with_details_return(jabber_conn_status_t result)
|
||||
expect_any(_mock_jabber_connect_with_details, jid);
|
||||
expect_any(_mock_jabber_connect_with_details, passwd);
|
||||
expect_any(_mock_jabber_connect_with_details, altdomain);
|
||||
expect_any(_mock_jabber_connect_with_details, port);
|
||||
will_return(_mock_jabber_connect_with_details, result);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user