Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Add unit tests for the traffic watcher services (#27) #101

Merged
merged 37 commits into from
May 29, 2020

Conversation

evdokimovs
Copy link
Contributor

@evdokimovs evdokimovs commented May 12, 2020

Part of #27

Synopsis

In #98 PR was added PeerMetricsService and TrafficWatcher services (which will be used for the on_start/on_stop callbacks). But #98 doesn't contains unit tests.

Solution

Add unit tests for the PeerMetricsService and TrafficWatcher.

Checklist

  • Created PR:
    • In draft mode
    • Name contains WIP: prefix
    • Name contains issue reference
    • Has k:: labels applied
    • Has assignee
  • Documentation is updated (if required)
  • Tests are updated (if required)
  • Changes conform code style
  • CHANGELOG entry is added (if required)
  • FCM (final commit message) is posted
    • and approved
  • Review is completed and changes are approved
  • Before merge:
    • Milestone is set
    • PR's name and description are correct and up-to-date
    • WIP: prefix is removed
    • All temporary labels are removed

@evdokimovs evdokimovs added enhancement Improvement of existing features or bugfix k::testing Related to testing and/or automated tests labels May 12, 2020
@evdokimovs evdokimovs added this to the 0.2.0 milestone May 12, 2020
@evdokimovs evdokimovs self-assigned this May 12, 2020
@evdokimovs
Copy link
Contributor Author

evdokimovs commented May 12, 2020

FCM

Improve traffic watcher services tests coverage (#101, #27)

- add unit tests for the PeerMetricsService and TrafficWatcher
- fix incorrect stats checking in the PeerMetricsService

@evdokimovs evdokimovs marked this pull request as ready for review May 12, 2020 14:46
@evdokimovs evdokimovs requested a review from alexlapa May 12, 2020 14:47
@alexlapa alexlapa requested a review from tyranron May 29, 2020 08:41
@tyranron tyranron added the feature New feature or request label May 29, 2020
@tyranron tyranron changed the title WIP: Add unit tests for the traffic watcher services (#27) Add unit tests for the traffic watcher services (#27) May 29, 2020
@evdokimovs evdokimovs merged commit a3cd7d7 into master May 29, 2020
@evdokimovs evdokimovs deleted the traffic-watchers-tests branch May 29, 2020 09:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement of existing features or bugfix feature New feature or request k::testing Related to testing and/or automated tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants