summaryrefslogtreecommitdiff
path: root/reference_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'reference_test.go')
-rw-r--r--reference_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/reference_test.go b/reference_test.go
index e42db41..285adb5 100644
--- a/reference_test.go
+++ b/reference_test.go
@@ -106,7 +106,7 @@ func TestReferenceIterator(t *testing.T) {
list = append(list, name)
name, err = nameIter.Next()
}
- if !IsErrorCode(err, ErrIterOver) {
+ if !IsErrorCode(err, ErrorCodeIterOver) {
t.Fatal("Iteration not over")
}
@@ -122,7 +122,7 @@ func TestReferenceIterator(t *testing.T) {
count++
_, err = iter.Next()
}
- if !IsErrorCode(err, ErrIterOver) {
+ if !IsErrorCode(err, ErrorCodeIterOver) {
t.Fatal("Iteration not over")
}
@@ -242,7 +242,7 @@ func TestReferenceNormalizeName(t *testing.T) {
}
ref, err = ReferenceNormalizeName("foo^", ReferenceFormatNormal)
- if !IsErrorCode(err, ErrInvalidSpec) {
+ if !IsErrorCode(err, ErrorCodeInvalidSpec) {
t.Errorf("foo^ should be invalid")
}
}