From 2a876be84400958184d76473773544b979c76953 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Oct 2020 18:22:51 -0700 Subject: tests: don't fail if TestGitStorage can reach the server Signed-off-by: Dirk Hohndel --- tests/testgitstorage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/testgitstorage.cpp b/tests/testgitstorage.cpp index 9aa9a97ee..f916b4e40 100644 --- a/tests/testgitstorage.cpp +++ b/tests/testgitstorage.cpp @@ -57,7 +57,11 @@ static void localRemoteCleanup() // this odd comparison is used to tell that we were able to connect to the remote repo; // in the error case we get the full cloudTestRepo name back as "branch" - QCOMPARE(QString(branch), randomBranch); + if (branch != randomBranch) { + // dang, we weren't able to connect to the server - let's not fail the test + // but just give up + QSKIP("wasn't able to connect to server"); + } // force delete any remote branch of that name on the server (and ignore any errors) delete_remote_branch(git_repo, remote, branch); -- cgit v1.2.3-70-g09d2