Skip to content

Commit

Permalink
fix: Use PreciseDate instead of Date for min read timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
agasheesh committed Jan 22, 2020
1 parent 56ed8ba commit 021a6f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system-test/spanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import {PreciseDate} from '@google-cloud/precise-date';
import * as assert from 'assert';
import {describe, it} from 'mocha';
import pLimit from 'p-limit';
Expand Down Expand Up @@ -3457,7 +3458,7 @@ describe('Spanner', () => {
const query = 'SELECT * FROM TxnTable';

const options = {
minReadTimestamp: new Date(),
minReadTimestamp: new PreciseDate(),
} as TimestampBounds;

// minTimestamp can only be used in single use transactions
Expand Down

0 comments on commit 021a6f9

Please sign in to comment.