mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
pkg/blobstore: use correct Open signature in tests.
This commit is contained in:
parent
3ef203a83f
commit
f287fedb33
1 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ func TestStoreRetrieve(t *testing.T) {
|
||||||
}
|
}
|
||||||
defer os.RemoveAll(dir)
|
defer os.RemoveAll(dir)
|
||||||
|
|
||||||
bs := OpenBlobStore(dir)
|
bs := Open(dir)
|
||||||
|
|
||||||
data := []byte{0xde, 0xad, 0xca, 0xfe, 0xba, 0xbe, 0xbe, 0xef}
|
data := []byte{0xde, 0xad, 0xca, 0xfe, 0xba, 0xbe, 0xbe, 0xef}
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ func TestReadNonExistantKey(t *testing.T) {
|
||||||
}
|
}
|
||||||
defer os.RemoveAll(dir)
|
defer os.RemoveAll(dir)
|
||||||
|
|
||||||
bs := OpenBlobStore(dir)
|
bs := Open(dir)
|
||||||
|
|
||||||
h := sha1.New()
|
h := sha1.New()
|
||||||
h.Write([]byte{0x42})
|
h.Write([]byte{0x42})
|
||||||
|
|
@ -68,7 +68,7 @@ func TestReadInvalidKeyLength(t *testing.T) {
|
||||||
}
|
}
|
||||||
defer os.RemoveAll(dir)
|
defer os.RemoveAll(dir)
|
||||||
|
|
||||||
bs := OpenBlobStore(dir)
|
bs := Open(dir)
|
||||||
|
|
||||||
key := ""
|
key := ""
|
||||||
for i := 0; i < 5; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
|
|
@ -90,7 +90,7 @@ func TestReadBadKeyNonHex(t *testing.T) {
|
||||||
}
|
}
|
||||||
defer os.RemoveAll(dir)
|
defer os.RemoveAll(dir)
|
||||||
|
|
||||||
bs := OpenBlobStore(dir)
|
bs := Open(dir)
|
||||||
|
|
||||||
key := ""
|
key := ""
|
||||||
for i := 0; i < 40; i++ {
|
for i := 0; i < 40; i++ {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue