From a7d3c5955ac9426dd57bf4d3df87ca1eba049789 Mon Sep 17 00:00:00 2001 From: Jesse Ezell Date: Fri, 4 Apr 2014 00:56:58 -0700 Subject: merge with improved error handling logic --- branch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'branch_test.go') 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") } } -- cgit v1.2.3