Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 001832e

Browse files
committed
minor: remove test of database eval function
1 parent 8a06683 commit 001832e

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

t/deprecated/types.t

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -183,30 +183,16 @@ is($id."", $id->value);
183183
is(keys %$scope, 0);
184184
is($ret_code->code, $str);
185185

186-
my $x;
187-
188-
if ( !( $server_type eq 'Mongos' && $server_version < v2.6.0 ) && !$conn->password )
189-
{
190-
$x = $testdb->run_command( [ eval => $code, nolock => false ] );
191-
is( $x->{retval}, 5, "eval with scope" );
192-
}
193-
194186
$str = "function() { return name; }";
195187
$code = MongoDB::Code->new(
196188
"code" => $str,
197189
"scope" => { "name" => "Fred" }
198190
);
199191

200-
if ( !( $server_type eq 'Mongos' && $server_version < v2.6.0 ) && !$conn->password )
201-
{
202-
$x = $testdb->run_command( [ eval => $code, nolock => false ] );
203-
is( $x->{retval}, "Fred", "eval with scope" );
204-
}
205-
206192
$coll->drop;
207193

208194
$coll->insert_one({"x" => "foo", "y" => $code, "z" => 1});
209-
$x = $coll->find_one;
195+
my $x = $coll->find_one;
210196
is($x->{x}, "foo");
211197
is($x->{y}->code, $str);
212198
is($x->{y}->scope->{"name"}, "Fred");

0 commit comments

Comments
 (0)