func (s *FakeStore) WatchTree(directory string, stopCh <-chan struct{}) (<-chan []*store.KVPair, error) {
	if s.watchTreeCallCount == 0 {
		s.watchTreeCallCount = 1
		return nil, errors.New("test error")
	}
	// First calls error
	return s.mockKVChan, nil
}
// WatchTree will fail the first time, and return the mockKVchan afterwards.
// This is the behaviour we need for testing.. If we need 'moar', should update this.
WatchTree will fail the first time, and return the mockKVchan afterwards.
This is the behaviour we need for testing.. If we need 'moar', should update this.
// WatchTree will fail the first time and return the mockKVchan afterwards . // This is the behaviour we need for testing .. If we need ' moar ' should update this .
func (s *FakeStore) WatchTree(directory string, stopCh <-chan struct{}) (<-chan []*store.KVPair, error) {
	if s.watchTreeCallCount == 0 {
		s.watchTreeCallCount = 1
		return nil, errors.New("test error")
	}
	return s.mockKVChan, nil
}
func ( s * FakeStore ) WatchTree ( directory string , stopCh <- chan struct { } ) ( <- chan [ ] * store . KVPair , error ) { if s . watchTreeCallCount == 0 { s . watchTreeCallCount = 1 return nil , errors . New ( " " ) } return s . mockKVChan , nil }
WatchTree will fail the first time, and return the mockKVchan afterwards.
WatchTree will fail the first time and return the mockKVchan afterwards .
// First calls error