Skip to content

Commit

Permalink
make no-op instead of a panic
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Jun 27, 2024
1 parent 2dbec93 commit b4738e4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions sync/sync_head_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package sync

import (
"context"
"errors"
"sync"
"sync/atomic"
"testing"
Expand Down Expand Up @@ -121,20 +122,17 @@ func (t *wrappedGetter) Head(ctx context.Context, options ...header.HeadOption[*
}

func (t *wrappedGetter) Get(ctx context.Context, hash header.Hash) (*headertest.DummyHeader, error) {
// TODO implement me
panic("implement me")
return nil, errors.New("implement me")
}

func (t *wrappedGetter) GetByHeight(ctx context.Context, u uint64) (*headertest.DummyHeader, error) {
// TODO implement me
panic("implement me")
return nil, errors.New("implement me")
}

func (t *wrappedGetter) GetRangeByHeight(
ctx context.Context,
from *headertest.DummyHeader,
to uint64,
) ([]*headertest.DummyHeader, error) {
// TODO implement me
panic("implement me")
return nil, errors.New("implement me")
}

0 comments on commit b4738e4

Please sign in to comment.