summaryrefslogtreecommitdiff
path: root/reference_test.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-04-26 20:24:11 +0200
committerCarlos Martín Nieto <[email protected]>2014-04-26 20:24:11 +0200
commit3cf0b6db80885c63986001f3217019bdf2295b71 (patch)
treeab57488aea30266d689924ea23705a305a05103c /reference_test.go
parentdca2192492a63df11365e3fecd03281e174cb788 (diff)
parent8982f4b3be90a04b0fad24da1ee6d85b1caad336 (diff)
Merge pull request #80 from jezell/oid-parse-protection
make it possible to handle errors
Diffstat (limited to 'reference_test.go')
-rw-r--r--reference_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/reference_test.go b/reference_test.go
index ffa9f35..c8c7262 100644
--- a/reference_test.go
+++ b/reference_test.go
@@ -111,7 +111,7 @@ func TestIterator(t *testing.T) {
list = append(list, name)
name, err = iter.NextName()
}
- if err != ErrIterOver {
+ if !IsErrorCode(err, ErrIterOver) {
t.Fatal("Iteration not over")
}
@@ -127,7 +127,7 @@ func TestIterator(t *testing.T) {
count++
_, err = iter.Next()
}
- if err != ErrIterOver {
+ if !IsErrorCode(err, ErrIterOver) {
t.Fatal("Iteration not over")
}