Skip to content

Commit 76ac806

Browse files
committed
Update spec tests
1 parent 4b06669 commit 76ac806

File tree

5 files changed

+35
-845
lines changed

5 files changed

+35
-845
lines changed

tests/SpecTests/ChangeStreamsSpecTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ChangeStreamsSpecTest extends FunctionalTestCase
3535
*/
3636
public static function assertCommandMatches(stdClass $expected, stdClass $actual)
3737
{
38-
if (isset($expected->getMore) && $expected->getMore == 42) {
38+
if (isset($expected->getMore) && $expected->getMore === 42) {
3939
static::assertObjectHasAttribute('getMore', $actual);
4040
static::assertThat($actual->getMore, static::logicalOr(
4141
static::isInstanceOf(Int64::class),

tests/SpecTests/change-streams/change-streams-errors.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

tests/SpecTests/change-streams/change-streams-resume-errorLabels.json

Lines changed: 17 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
{
5454
"command_started_event": {
5555
"command": {
56-
"getMore": "42",
56+
"getMore": 42,
5757
"collection": "test"
5858
},
5959
"command_name": "getMore",
@@ -146,7 +146,7 @@
146146
{
147147
"command_started_event": {
148148
"command": {
149-
"getMore": "42",
149+
"getMore": 42,
150150
"collection": "test"
151151
},
152152
"command_name": "getMore",
@@ -239,7 +239,7 @@
239239
{
240240
"command_started_event": {
241241
"command": {
242-
"getMore": "42",
242+
"getMore": 42,
243243
"collection": "test"
244244
},
245245
"command_name": "getMore",
@@ -332,7 +332,7 @@
332332
{
333333
"command_started_event": {
334334
"command": {
335-
"getMore": "42",
335+
"getMore": 42,
336336
"collection": "test"
337337
},
338338
"command_name": "getMore",
@@ -425,7 +425,7 @@
425425
{
426426
"command_started_event": {
427427
"command": {
428-
"getMore": "42",
428+
"getMore": 42,
429429
"collection": "test"
430430
},
431431
"command_name": "getMore",
@@ -518,7 +518,7 @@
518518
{
519519
"command_started_event": {
520520
"command": {
521-
"getMore": "42",
521+
"getMore": 42,
522522
"collection": "test"
523523
},
524524
"command_name": "getMore",
@@ -611,7 +611,7 @@
611611
{
612612
"command_started_event": {
613613
"command": {
614-
"getMore": "42",
614+
"getMore": 42,
615615
"collection": "test"
616616
},
617617
"command_name": "getMore",
@@ -704,7 +704,7 @@
704704
{
705705
"command_started_event": {
706706
"command": {
707-
"getMore": "42",
707+
"getMore": 42,
708708
"collection": "test"
709709
},
710710
"command_name": "getMore",
@@ -797,7 +797,7 @@
797797
{
798798
"command_started_event": {
799799
"command": {
800-
"getMore": "42",
800+
"getMore": 42,
801801
"collection": "test"
802802
},
803803
"command_name": "getMore",
@@ -890,7 +890,7 @@
890890
{
891891
"command_started_event": {
892892
"command": {
893-
"getMore": "42",
893+
"getMore": 42,
894894
"collection": "test"
895895
},
896896
"command_name": "getMore",
@@ -983,7 +983,7 @@
983983
{
984984
"command_started_event": {
985985
"command": {
986-
"getMore": "42",
986+
"getMore": 42,
987987
"collection": "test"
988988
},
989989
"command_name": "getMore",
@@ -1076,7 +1076,7 @@
10761076
{
10771077
"command_started_event": {
10781078
"command": {
1079-
"getMore": "42",
1079+
"getMore": 42,
10801080
"collection": "test"
10811081
},
10821082
"command_name": "getMore",
@@ -1169,7 +1169,7 @@
11691169
{
11701170
"command_started_event": {
11711171
"command": {
1172-
"getMore": "42",
1172+
"getMore": 42,
11731173
"collection": "test"
11741174
},
11751175
"command_name": "getMore",
@@ -1262,7 +1262,7 @@
12621262
{
12631263
"command_started_event": {
12641264
"command": {
1265-
"getMore": "42",
1265+
"getMore": 42,
12661266
"collection": "test"
12671267
},
12681268
"command_name": "getMore",
@@ -1355,7 +1355,7 @@
13551355
{
13561356
"command_started_event": {
13571357
"command": {
1358-
"getMore": "42",
1358+
"getMore": 42,
13591359
"collection": "test"
13601360
},
13611361
"command_name": "getMore",
@@ -1448,100 +1448,7 @@
14481448
{
14491449
"command_started_event": {
14501450
"command": {
1451-
"getMore": "42",
1452-
"collection": "test"
1453-
},
1454-
"command_name": "getMore",
1455-
"database_name": "change-stream-tests"
1456-
}
1457-
},
1458-
{
1459-
"command_started_event": {
1460-
"command": {
1461-
"aggregate": "test",
1462-
"cursor": {},
1463-
"pipeline": [
1464-
{
1465-
"$changeStream": {}
1466-
}
1467-
]
1468-
},
1469-
"command_name": "aggregate",
1470-
"database_name": "change-stream-tests"
1471-
}
1472-
}
1473-
],
1474-
"result": {
1475-
"success": [
1476-
{
1477-
"_id": "42",
1478-
"documentKey": "42",
1479-
"operationType": "insert",
1480-
"ns": {
1481-
"db": "change-stream-tests",
1482-
"coll": "test"
1483-
},
1484-
"fullDocument": {
1485-
"x": {
1486-
"$numberInt": "1"
1487-
}
1488-
}
1489-
}
1490-
]
1491-
}
1492-
},
1493-
{
1494-
"description": "change stream resumes after ElectionInProgress",
1495-
"minServerVersion": "4.3.1",
1496-
"failPoint": {
1497-
"configureFailPoint": "failGetMoreAfterCursorCheckout",
1498-
"mode": {
1499-
"times": 1
1500-
},
1501-
"data": {
1502-
"errorCode": 216,
1503-
"closeConnection": false
1504-
}
1505-
},
1506-
"target": "collection",
1507-
"topology": [
1508-
"replicaset",
1509-
"sharded"
1510-
],
1511-
"changeStreamPipeline": [],
1512-
"changeStreamOptions": {},
1513-
"operations": [
1514-
{
1515-
"database": "change-stream-tests",
1516-
"collection": "test",
1517-
"name": "insertOne",
1518-
"arguments": {
1519-
"document": {
1520-
"x": 1
1521-
}
1522-
}
1523-
}
1524-
],
1525-
"expectations": [
1526-
{
1527-
"command_started_event": {
1528-
"command": {
1529-
"aggregate": "test",
1530-
"cursor": {},
1531-
"pipeline": [
1532-
{
1533-
"$changeStream": {}
1534-
}
1535-
]
1536-
},
1537-
"command_name": "aggregate",
1538-
"database_name": "change-stream-tests"
1539-
}
1540-
},
1541-
{
1542-
"command_started_event": {
1543-
"command": {
1544-
"getMore": "42",
1451+
"getMore": 42,
15451452
"collection": "test"
15461453
},
15471454
"command_name": "getMore",
@@ -1640,7 +1547,7 @@
16401547
{
16411548
"command_started_event": {
16421549
"command": {
1643-
"getMore": "42",
1550+
"getMore": 42,
16441551
"collection": "test"
16451552
},
16461553
"command_name": "getMore",

0 commit comments

Comments
 (0)