summaryrefslogtreecommitdiff
path: root/branch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'branch_test.go')
-rw-r--r--branch_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/branch_test.go b/branch_test.go
index 2b168f5..44f6338 100644
--- a/branch_test.go
+++ b/branch_test.go
@@ -20,7 +20,7 @@ func TestBranchIterator(t *testing.T) {
t.Fatalf("expected BranchLocal, not %v", t)
}
b, bt, err = i.Next()
- if err != ErrIterOver {
+ if !IsErrorCode(err, ErrIterOver) {
t.Fatal("expected iterover")
}
}