Skip to content

Commit 85a08f1

Browse files
committed
fixup: copilot cr
1 parent 724f66e commit 85a08f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/shell-api/src/replica-set.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ describe('ReplicaSet', function () {
10341034
before(function () {
10351035
// Allow "Unable to forward progress" warnings
10361036
unsubscribeAllowWarnings = [srv0, srv1, srv2, srv3].map((s) =>
1037-
s.allowWarning?.(
1037+
s.allowWarning(
10381038
(entry) =>
10391039
entry.id === 21764 &&
10401040
entry.attr?.error?.codeName === 'NodeNotFound'
@@ -1084,7 +1084,7 @@ describe('ReplicaSet', function () {
10841084
before(function () {
10851085
// Allow "Attempted to disable query sampling but query sampling was not active" warnings
10861086
unsubscribeAllowWarnings = [srv0, srv1, srv2, srv3].map((s) =>
1087-
s.allowWarning?.(7724700)
1087+
s.allowWarning(7724700)
10881088
);
10891089
});
10901090

@@ -1140,7 +1140,7 @@ describe('ReplicaSet', function () {
11401140
before(function () {
11411141
// Allow "replSetReconfig" errors
11421142
unsubscribeAllowWarnings = [srv0, srv1, srv2].map((s) =>
1143-
s.allowWarning?.((entry) => {
1143+
s.allowWarning((entry) => {
11441144
return (
11451145
entry.id === 21420 &&
11461146
entry.attr?.error?.codeName ===

packages/shell-api/src/shard.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3040,7 +3040,7 @@ describe('Shard', function () {
30403040
before(function () {
30413041
// Allow "Attempted to disable query sampling but query sampling was not active" warnings
30423042
unsubscribeAllowWarnings = [mongos, rs0, rs1].map((s) =>
3043-
s.allowWarning?.(7724700)
3043+
s.allowWarning(7724700)
30443044
);
30453045
});
30463046

0 commit comments

Comments
 (0)