Skip to content

Commit 69c7593

Browse files
committed
Assert search returns a truthy value
1 parent a460d4a commit 69c7593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/test_return_codes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ def test_protocol_error
2121
end
2222

2323
def test_time_limit_exceeded
24-
refute @ldap.search(filter: "cn=timeLimitExceeded", base: "ou=Retcodes,dc=rubyldap,dc=com")
24+
assert @ldap.search(filter: "cn=timeLimitExceeded", base: "ou=Retcodes,dc=rubyldap,dc=com")
2525
assert result = @ldap.get_operation_result
2626

2727
assert_equal 3, result.code
2828
assert_equal Net::LDAP::ResultStrings[3], result.message
2929
end
3030

3131
def test_size_limit_exceeded
32-
@ldap.search(filter: "cn=sizeLimitExceeded", base: "ou=Retcodes,dc=rubyldap,dc=com")
32+
assert @ldap.search(filter: "cn=sizeLimitExceeded", base: "ou=Retcodes,dc=rubyldap,dc=com")
3333
assert result = @ldap.get_operation_result
3434

3535
assert_equal 4, result.code

0 commit comments

Comments
 (0)