Skip to content

Commit

Permalink
Sync server discovery integration spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jyemin committed Jul 14, 2022
1 parent 22fd062 commit 4a08efb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"failPoint": {
"configureFailPoint": "failCommand",
"mode": {
"times": 2
"times": 4
},
"data": {
"failCommands": [
Expand Down Expand Up @@ -162,22 +162,6 @@
}
]
}
},
{
"name": "assertEventCount",
"object": "testRunner",
"arguments": {
"event": "ServerMarkedUnknownEvent",
"count": 1
}
},
{
"name": "assertEventCount",
"object": "testRunner",
"arguments": {
"event": "PoolClearedEvent",
"count": 1
}
}
],
"expectations": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"failPoint": {
"configureFailPoint": "failCommand",
"mode": {
"times": 2
"times": 4
},
"data": {
"failCommands": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"failPoint": {
"configureFailPoint": "failCommand",
"mode": {
"times": 2
"times": 4
},
"data": {
"failCommands": [
Expand Down Expand Up @@ -160,22 +160,6 @@
}
]
}
},
{
"name": "assertEventCount",
"object": "testRunner",
"arguments": {
"event": "ServerMarkedUnknownEvent",
"count": 1
}
},
{
"name": "assertEventCount",
"object": "testRunner",
"arguments": {
"event": "PoolClearedEvent",
"count": 1
}
}
],
"expectations": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,27 @@
"name": "recordPrimary",
"object": "testRunner"
},
{
"name": "runAdminCommand",
"object": "testRunner",
"command_name": "replSetFreeze",
"arguments": {
"command": {
"replSetFreeze": 0
},
"readPreference": {
"mode": "Secondary"
}
}
},
{
"name": "runAdminCommand",
"object": "testRunner",
"command_name": "replSetStepDown",
"arguments": {
"command": {
"replSetStepDown": 1,
"secondaryCatchUpPeriodSecs": 1,
"replSetStepDown": 30,
"secondaryCatchUpPeriodSecs": 30,
"force": false
}
}
Expand All @@ -61,7 +74,7 @@
"name": "waitForPrimaryChange",
"object": "testRunner",
"arguments": {
"timeoutMS": 5000
"timeoutMS": 15000
}
},
{
Expand Down

0 comments on commit 4a08efb

Please sign in to comment.