From bd0a95672b929b80a441debae0c2a91a50584cc8 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 8 Apr 2021 16:42:39 +0200 Subject: [PATCH] fix(shell-api): never check $clusterTime in rs integration tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See the referenced server issue, the problematic change has been applied not only to 4.2.x but also to 4.0.x and 4.4.x, so let’s skip this entirely for now. --- packages/shell-api/src/replica-set.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/shell-api/src/replica-set.spec.ts b/packages/shell-api/src/replica-set.spec.ts index d98f06cc7c..ae9d62eb7b 100644 --- a/packages/shell-api/src/replica-set.spec.ts +++ b/packages/shell-api/src/replica-set.spec.ts @@ -3,7 +3,6 @@ import { bson, FindCursor as ServiceProviderCursor, ServiceProvider } from '@mon import chai, { expect } from 'chai'; import { EventEmitter } from 'events'; import sinonChai from 'sinon-chai'; -import semver from 'semver'; import { StubbedInstance, stubInterface } from 'ts-sinon'; import { ensureMaster } from '../../../testing/helpers'; import { MongodSetup, skipIfServerVersion, startTestCluster } from '../../../testing/integration-testing-hooks'; @@ -653,9 +652,7 @@ describe('ReplicaSet', () => { const result = await rs.initiate(cfg); expect(result.ok).to.equal(1); // https://jira.mongodb.org/browse/SERVER-55371 - if (!semver.satisfies(await srv0.serverVersion(), '>= 4.2.13 < 4.4.x')) { - expect(result.$clusterTime).to.not.be.undefined; - } + // expect(result.$clusterTime).to.not.be.undefined; }); beforeEach(async() => {