Fix tests
License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
parent
c231fe8060
commit
a746255719
|
@ -1,6 +1,7 @@
|
||||||
package disk
|
package disk
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -43,13 +44,13 @@ func badRPCClient(t *testing.T) *rpc.Client {
|
||||||
// return nil
|
// return nil
|
||||||
// }
|
// }
|
||||||
|
|
||||||
func (mock *badRPCService) IPFSRepoSize(in struct{}, out *uint64) error {
|
func (mock *badRPCService) IPFSRepoSize(ctx context.Context, in struct{}, out *uint64) error {
|
||||||
*out = 2
|
*out = 2
|
||||||
mock.nthCall++
|
mock.nthCall++
|
||||||
return errors.New("fake error")
|
return errors.New("fake error")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mock *badRPCService) IPFSFreeSpace(in struct{}, out *uint64) error {
|
func (mock *badRPCService) IPFSFreeSpace(ctx context.Context, in struct{}, out *uint64) error {
|
||||||
*out = 2
|
*out = 2
|
||||||
mock.nthCall++
|
mock.nthCall++
|
||||||
return errors.New("fake error")
|
return errors.New("fake error")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user