Skip to content

Commit

Permalink
test: only on replica_set
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Mar 10, 2022
1 parent 4ff8642 commit 3392dbf
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from 'chai';

import { MongoError, MongoServerError } from '../../../src';
import { MongoError, MongoServerError, TopologyType } from '../../../src';

describe('Retryable Writes Spec Prose', () => {
/**
Expand All @@ -17,7 +17,10 @@ describe('Retryable Writes Spec Prose', () => {
let client;

beforeEach(async function () {
if (this.configuration.buildInfo.versionArray[0] < 4) {
if (
this.configuration.buildInfo.versionArray[0] < 4 ||
this.configuration.topologyType !== TopologyType.ReplicaSetWithPrimary
) {
this.currentTest.skipReason =
'configureFailPoint only works on server versions greater than 4';
this.skip();
Expand Down

0 comments on commit 3392dbf

Please sign in to comment.