mirror of
https://github.com/google/nomulus
synced 2026-07-19 14:32:44 +00:00
Make the new datastore testing proxy actually store the requests
This will improve error messages and allow for easier debugging ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=123893831
This commit is contained in:
@@ -109,7 +109,7 @@ public class ObjectifyService {
|
||||
// examine the number of requests sent to datastore.
|
||||
AsyncDatastoreService service = super.createRawAsyncDatastoreService(cfg);
|
||||
return RegistryEnvironment.get().equals(RegistryEnvironment.UNITTEST)
|
||||
? new RequestCountingAsyncDatastoreService(service)
|
||||
? new RequestCapturingAsyncDatastoreService(service)
|
||||
: service;
|
||||
}});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user