Skip to content

Commit d5f41f6

Browse files
committed
PHPC-411: Drop system.profile collection before tests
1 parent e6b8479 commit d5f41f6

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

tests/query/bug0705-001.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PHPC-705: Do not unnecessarily wrap filters in $query (profiled query)
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php NEEDS('STANDALONE_30'); CLEANUP(STANDALONE_30); ?>
6+
<?php CLEANUP(STANDALONE_30, DATABASE_NAME, 'system.profile'); ?>
67
--FILE--
78
<?php
89
require_once __DIR__ . "/../utils/basic.inc";

tests/server/server-executeCommand-002.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MongoDB\Driver\Server::executeCommand() takes a read preference
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5-
<?php NEEDS('REPLICASET'); ?>
5+
<?php NEEDS('REPLICASET'); CLEANUP(REPLICASET, DATABASE_NAME, 'system.profile'); ?>
66
--FILE--
77
<?php
88
require_once __DIR__ . "/../utils/basic.inc";

tests/server/server-executeQuery-005.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MongoDB\Driver\Server::executeQuery() takes a read preference (OP_QUERY)
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5-
<?php NEEDS('REPLICASET_30'); ?>
5+
<?php NEEDS('REPLICASET_30'); CLEANUP(REPLICASET_30, DATABASE_NAME, 'system.profile'); ?>
66
--FILE--
77
<?php
88
require_once __DIR__ . "/../utils/basic.inc";

tests/server/server-executeQuery-006.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MongoDB\Driver\Server::executeQuery() takes a read preference (find command)
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5-
<?php NEEDS('REPLICASET'); ?>
5+
<?php NEEDS('REPLICASET'); CLEANUP(REPLICASET, DATABASE_NAME, 'system.profile'); ?>
66
--FILE--
77
<?php
88
require_once __DIR__ . "/../utils/basic.inc";

0 commit comments

Comments
 (0)