aboutsummaryrefslogtreecommitdiff
path: root/hash_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hash_test.go')
-rw-r--r--hash_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash_test.go b/hash_test.go
index 89e66fd1..212e5ef2 100644
--- a/hash_test.go
+++ b/hash_test.go
@@ -9,8 +9,8 @@ func TestParseHashValidAndInvalid(t *testing.T) {
pattern := "0123456789abcdef"
repeats := (testHashSize*2 + len(pattern) - 1) / len(pattern)
hexStr := strings.Repeat(pattern, repeats)[:testHashSize*2]
-
- repo := &Repository{HashSize: testHashSize}
+
+ repo := &Repository{hashSize: testHashSize}
id, err := repo.ParseHash(hexStr)
if err != nil {
t.Fatalf("ParseHash returned error: %v", err)