Chromium Code Reviews| Index: service/datastore/testable.go |
| diff --git a/service/datastore/testable.go b/service/datastore/testable.go |
| index 483cb762314814090026bde53c001029b68e83f5..0ba6c4a2c0a0e73e1a1490b529ef8d068898fb64 100644 |
| --- a/service/datastore/testable.go |
| +++ b/service/datastore/testable.go |
| @@ -41,4 +41,11 @@ type Testable interface { |
| // transaction body pretending transaction conflicts happens. 0 (default) |
| // means commit succeeds on the first attempt (no retries). |
| SetTransactionRetryCount(int) |
| + |
| + // Consistent controls the eventual consistency behavior of the testing |
| + // implementation. If it is called with true, then this datastore |
| + // implementation will be always-consistent, instead of eventually-consistent. |
| + // |
| + // By default the datastore is eventually consistent. |
|
Vadim Sh.
2015/09/24 18:40:11
nit: mention that one has to call CatchupIndexes t
iannucci
2015/09/24 18:59:30
Done
|
| + Consistent(always bool) |
| } |