(tv: TopologyVersion)
| 461 | } |
| 462 | |
| 463 | function makeTopologyVersion(tv: TopologyVersion) { |
| 464 | return { |
| 465 | processId: tv.processId, |
| 466 | // tests mock counter as just number, but in a real situation counter should always be a Long |
| 467 | // TODO(NODE-2674): Preserve int64 sent from MongoDB |
| 468 | counter: Long.isLong(tv.counter) ? tv.counter : Long.fromNumber(tv.counter) |
| 469 | }; |
| 470 | } |
| 471 | |
| 472 | /** @internal */ |
| 473 | export interface RTTPingerOptions extends ConnectionOptions { |