mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
Turn on memcache in flow tests.
No tests break because of this, but some tests that were previously intentionally clearing memcache (for example, the test in DomainInfoFlow that counts datastore calls) are now doing something that is not a no-op anymore. Also fix an incorrect comment about memcache in DatastoreHelper. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154087182
This commit is contained in:
parent
b15d715dc0
commit
b6e50f0467
3 changed files with 16 additions and 2 deletions
|
@ -819,8 +819,10 @@ public class DatastoreHelper {
|
|||
public void vrun() {
|
||||
saveResource(resource, wantBackup);
|
||||
}});
|
||||
// Force the session to be cleared so that when we read it back, we read from Datastore
|
||||
// and not from the transaction cache or memcache.
|
||||
// Force the session cache to be cleared so that when we read the resource back, we read from
|
||||
// Datastore (or memcache) and not from the session cache. This is needed to trigger Objectify's
|
||||
// load process (unmarshalling entity protos to POJOs, nulling out empty collections, calling
|
||||
// @OnLoad methods, etc.) which is bypassed for entities loaded from the session cache.
|
||||
ofy().clearSessionCache();
|
||||
return ofy().load().entity(resource).now();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue