Skip to content

Commit

Permalink
add more unit tests for transaction syncer
Browse files Browse the repository at this point in the history
  • Loading branch information
freehan committed Feb 4, 2019
1 parent fcec109 commit f9208f9
Show file tree
Hide file tree
Showing 2 changed files with 352 additions and 27 deletions.
4 changes: 2 additions & 2 deletions pkg/neg/syncers/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func NewTransactionSyncer(negSyncerKey NegSyncerKey, networkEndpointGroupName st
}
// Syncer implements life cycle logic
syncer := newSyncer(negSyncerKey, networkEndpointGroupName, serviceLister, recorder, ts)
// TransactionSyncer needs syncer interface for internals
// transactionSyncer needs syncer interface for internals
ts.syncer = syncer
ts.retry = NewDelayRetryHandler(func() { syncer.Sync() }, NewExponentialBackendOffHandler(maxRetries, minRetryDelay, maxRetryDelay))
return syncer
Expand Down Expand Up @@ -287,7 +287,7 @@ func (s *transactionSyncer) commitTransaction(err error, networkEndpointMap map[
for encodedEndpoint := range networkEndpointMap {
entry, ok := s.transactions.Get(encodedEndpoint)
if !ok {
glog.Errorf("Endpoint %q was not found in the transaction table.")
glog.Errorf("Endpoint %q was not found in the transaction table.", encodedEndpoint)
needSync = true
continue
}
Expand Down
Loading

0 comments on commit f9208f9

Please sign in to comment.