Add a failing test case for git_remote_disconnect/git_remote_connected.

This commit is contained in:
Arthur Schreiber 2012-06-02 16:48:12 +02:00
parent 1d4dcc4b48
commit 36c88422ef

View File

@ -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;