mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
Fix typos
This commit is contained in:
committed by
Michael Eischer
parent
a72b418319
commit
ac00229386
@@ -79,14 +79,14 @@ func TestCacheGetOrCompute(t *testing.T) {
|
||||
return data1, nil
|
||||
})
|
||||
rtest.OK(t, err)
|
||||
rtest.Equals(t, &data1[0], &blob[0], "wrong buffer returend")
|
||||
rtest.Equals(t, &data1[0], &blob[0], "wrong buffer returned")
|
||||
|
||||
// now the buffer should be returned without calling the compute function
|
||||
blob, err = c.GetOrCompute(id1, func() ([]byte, error) {
|
||||
return nil, e
|
||||
})
|
||||
rtest.OK(t, err)
|
||||
rtest.Equals(t, &data1[0], &blob[0], "wrong buffer returend")
|
||||
rtest.Equals(t, &data1[0], &blob[0], "wrong buffer returned")
|
||||
|
||||
// check concurrency
|
||||
wg, _ := errgroup.WithContext(context.TODO())
|
||||
|
||||
Reference in New Issue
Block a user