* Creates a cluster time for use in unit testing cluster time gossiping and * causal consistency. * * @param {number} time the logical time * @returns a cluster time according to the driver sessions specification
(time)
| 119 | * @returns a cluster time according to the driver sessions specification |
| 120 | */ |
| 121 | function genClusterTime(time) { |
| 122 | return { |
| 123 | clusterTime: new Timestamp(Long.fromNumber(time, true)), |
| 124 | signature: { hash: new Binary(Buffer.from('test', 'utf8')), keyId: new Long(1) } |
| 125 | }; |
| 126 | } |
| 127 | |
| 128 | module.exports = { |
| 129 | ReplSetFixture: ReplSetFixture, |
no outgoing calls
no test coverage detected