prysm-pulse/beacon-chain/sync/initial-sync/testing/mock.go
Preston Van Loon 9fcc6fc201
Wait until fully synced to process pubsub messages (#3514)
* context timeout for pubsub message processing

* add syncing check

* gofmt

* use a global cache

* lint

* fmt

* fix conflicts

* revert change

* gaz
2019-09-20 10:54:32 -07:00

17 lines
228 B
Go

package testing
// Sync defines a mock for the sync service.
type Sync struct {
IsSyncing bool
}
// Syncing --
func (s *Sync) Syncing() bool {
return s.IsSyncing
}
// Status --
func (s *Sync) Status() error {
return nil
}