aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testgitstorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testgitstorage.cpp')
-rw-r--r--tests/testgitstorage.cpp6
1 files changed, 5 insertions, 1 deletions
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);