aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testgitstorage.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-09-02 17:31:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-02 09:11:20 -0700
commit40122e423359d8ae2042e63c7c4cdf4cb5fcbdca (patch)
treefa0c496334c64f628bc8849c7137cb09f517b73f /tests/testgitstorage.cpp
parent181d5c5db9678dc275b3764d5fada002d190c66a (diff)
downloadsubsurface-40122e423359d8ae2042e63c7c4cdf4cb5fcbdca.tar.gz
Prevent tests from hanging when offline
From 31e324797c06d366f49db453a67a119819ca8012 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" <helling@atdotde.de> Date: Wed, 2 Sep 2015 17:28:12 +0200 Subject: [PATCH] Test that there is a dive so that the TestGitStorage does not hang when offline. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testgitstorage.cpp')
-rw-r--r--tests/testgitstorage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testgitstorage.cpp b/tests/testgitstorage.cpp
index 99ee8d8c4..57a36d10a 100644
--- a/tests/testgitstorage.cpp
+++ b/tests/testgitstorage.cpp
@@ -272,6 +272,7 @@ void TestGitStorage::testGitStorageCloudMerge3()
QCOMPARE(parse_file(qPrintable(cloudTestRepo)), 0);
process_dives(false, false);
struct dive *dive = get_dive(0);
+ QVERIFY(dive != 0);
dive->notes = strdup("Create multi line dive notes\nLine 2\nLine 3\nLine 4\nLine 5\nThat should be enough");
dive = get_dive(1);
dive->notes = strdup("Create multi line dive notes\nLine 2\nLine 3\nLine 4\nLine 5\nThat should be enough");