| Index: service/datastore/testable.go
|
| diff --git a/service/datastore/testable.go b/service/datastore/testable.go
|
| index 483cb762314814090026bde53c001029b68e83f5..e03fb8e76eb5bcc069fb61bf1523e9a14ac51786 100644
|
| --- a/service/datastore/testable.go
|
| +++ b/service/datastore/testable.go
|
| @@ -41,4 +41,12 @@ 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, and you must call
|
| + // CatchupIndexes or use Take/SetIndexSnapshot to manipulate the index state.
|
| + Consistent(always bool)
|
| }
|
|
|