aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-25 18:22:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-26 19:27:03 -0700
commit2a876be84400958184d76473773544b979c76953 (patch)
treee6194136344b888ca7262cdb259ab4ae22698cae /tests
parentb554b3d0608e224a17543006c74d4ddd8c3fac10 (diff)
downloadsubsurface-2a876be84400958184d76473773544b979c76953.tar.gz
tests: don't fail if TestGitStorage can reach the server
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-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);