summaryrefslogtreecommitdiffstats
path: root/ldap_test.go
diff options
context:
space:
mode:
authorSamuel Stauffer <samuel@descolada.com>2014-03-19 22:22:55 +0100
committerSamuel Stauffer <samuel@descolada.com>2014-03-19 22:22:55 +0100
commit2eea0c0a703e32b904741d52c9e2c9ae836c14b0 (patch)
tree10820142494033c3d3297249ab31efe0176aec77 /ldap_test.go
parentShort writes don't happen without an error so don't loop (diff)
downloadldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar
ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.gz
ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.bz2
ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.lz
ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.xz
ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.zst
ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.zip
Diffstat (limited to 'ldap_test.go')
-rw-r--r--ldap_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/ldap_test.go b/ldap_test.go
index 48023f1..31cfbf0 100644
--- a/ldap_test.go
+++ b/ldap_test.go
@@ -20,7 +20,7 @@ func TestConnect(t *testing.T) {
fmt.Printf("TestConnect: starting...\n")
l, err := Dial("tcp", fmt.Sprintf("%s:%d", ldapServer, ldapPort))
if err != nil {
- t.Errorf(err.String())
+ t.Errorf(err.Error())
return
}
defer l.Close()
@@ -31,7 +31,7 @@ func TestSearch(t *testing.T) {
fmt.Printf("TestSearch: starting...\n")
l, err := Dial("tcp", fmt.Sprintf("%s:%d", ldapServer, ldapPort))
if err != nil {
- t.Errorf(err.String())
+ t.Errorf(err.Error())
return
}
defer l.Close()
@@ -45,7 +45,7 @@ func TestSearch(t *testing.T) {
sr, err := l.Search(searchRequest)
if err != nil {
- t.Errorf(err.String())
+ t.Errorf(err.Error())
return
}
@@ -56,14 +56,14 @@ func TestSearchWithPaging(t *testing.T) {
fmt.Printf("TestSearchWithPaging: starting...\n")
l, err := Dial("tcp", fmt.Sprintf("%s:%d", ldapServer, ldapPort))
if err != nil {
- t.Errorf(err.String())
+ t.Errorf(err.Error())
return
}
defer l.Close()
err = l.Bind("", "")
if err != nil {
- t.Errorf(err.String())
+ t.Errorf(err.Error())
return
}
@@ -75,7 +75,7 @@ func TestSearchWithPaging(t *testing.T) {
nil)
sr, err := l.SearchWithPaging(searchRequest, 5)
if err != nil {
- t.Errorf(err.String())
+ t.Errorf(err.Error())
return
}
@@ -91,7 +91,7 @@ func testMultiGoroutineSearch(t *testing.T, l *Conn, results chan *SearchResult,
nil)
sr, err := l.Search(searchRequest)
if err != nil {
- t.Errorf(err.String())
+ t.Errorf(err.Error())
results <- nil
return
}
@@ -102,7 +102,7 @@ func TestMultiGoroutineSearch(t *testing.T) {
fmt.Printf("TestMultiGoroutineSearch: starting...\n")
l, err := Dial("tcp", fmt.Sprintf("%s:%d", ldapServer, ldapPort))
if err != nil {
- t.Errorf(err.String())
+ t.Errorf(err.Error())
return
}
defer l.Close()