summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2012-06-22 11:13:01 +0000
committerPatrick Ohly <patrick.ohly@intel.com>2012-06-22 11:13:01 +0000
commit684019717449965137324836fc46ba991fe7fd9c (patch)
tree30b0875868e9ea9ced8e8e9bc8bc1868a29a74ad
parentf418481057fe012ef5fa58f2dd4147e0630ef82f (diff)
testing: use "refresh-from-server"
client-test avoided "refresh-from-server" in favor of delete+slow sync because the Funambol SyncML did a literal "refresh-from-server" sync. libsynthesis is smarter and does the delete+slow sync or literal refresh sync, depending on the configuration for the peer. Changed because Funambol's OneMedia throttles clients with 417 which ask for slow syncs.
-rw-r--r--test/ClientTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ClientTest.cpp b/test/ClientTest.cpp
index fcd37b0d..7697a03c 100644
--- a/test/ClientTest.cpp
+++ b/test/ClientTest.cpp
@@ -2909,17 +2909,17 @@ void SyncTests::doCopy() {
}
/**
- * replicate server database locally: same as SYNC_REFRESH_FROM_SERVER,
- * but done with explicit local delete and then a SYNC_SLOW because some
- * servers do no support SYNC_REFRESH_FROM_SERVER
+ * Replicate server database locally. Works with all servers
+ * (including those which do not support refresh sync) because the
+ * Synthesis engine will do a local delete + slow sync (by default)
+ * and a real refresh sync only when asked to explicitly (Funambol).
*/
void SyncTests::refreshClient(SyncOptions options) {
- CT_ASSERT_NO_THROW(allSourcesDeleteAll());
doSync(__FILE__, __LINE__,
"refresh",
options
- .setSyncMode(SYNC_SLOW)
- .setCheckReport(CheckSyncReport(-1,0,0, 0,0,0, true, SYNC_SLOW)));
+ .setSyncMode(SYNC_REFRESH_FROM_REMOTE)
+ .setCheckReport(CheckSyncReport(-1,0,-1, 0,0,0, true, SYNC_REFRESH_FROM_REMOTE)));
}