client-test: always set source type, also for sync case

An incomplete source config might already exist. Better set the source
type in all cases, to ensure that we really run with the right backend
and data format.
This commit is contained in:
Patrick Ohly 2011-02-03 20:16:51 +01:00
parent 2318082ca1
commit 04fd248bf7
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,6 @@ public:
boost::shared_ptr<SyncSourceConfig> scServerTemplate = from->getSyncSourceConfig(testconfig.sourceNameServerTemplate);
sc->setURI(scServerTemplate->getURI());
}
sc->setSourceType(SourceType(testconfig.type));
}
// always set these properties: they might have changed since the last run
@ -268,6 +267,7 @@ public:
sc->setDatabaseID(database);
sc->setUser(m_evoUser);
sc->setPassword(m_evoPassword);
sc->setSourceType(SourceType(testconfig.type));
}
config->flush();
}