mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 23:19:28 +00:00
Add a failing test case for git_remote_disconnect/git_remote_connected.
This commit is contained in:
parent
1d4dcc4b48
commit
36c88422ef
@ -90,6 +90,15 @@ static void connect_to_local_repository(const char *local_repository)
|
||||
|
||||
}
|
||||
|
||||
void test_network_remotelocal__connected(void)
|
||||
{
|
||||
connect_to_local_repository(cl_fixture("testrepo.git"));
|
||||
cl_assert(git_remote_connected(remote));
|
||||
|
||||
git_remote_disconnect(remote);
|
||||
cl_assert(!git_remote_connected(remote));
|
||||
}
|
||||
|
||||
void test_network_remotelocal__retrieve_advertised_references(void)
|
||||
{
|
||||
int how_many_refs = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user