[PR #4175] [CLOSED] [client] add race flag to client tests #24821

Open
opened 2026-08-05 06:09:10 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4175
Author: @mlsmaycon
Created: 7/18/2025
Status: Closed

Base: mainHead: add/race-test


📝 Commits (10+)

  • e66412d add race flag to client tests
  • 7b4cc63 update some tests
  • 84988b4 update checkChangeFn test usage
  • bdb38df use relay manager.getClientLen()
  • 62deb64 use getHealthCheckInterval and setHealthCheckInterval
  • 4e737a4 rename and use getHeartBeatTimeout and setHeartBeatTimeout
  • 09d0fea use setters and getters for healthCheckInterval and healthCheckTimeout
  • d7d57a4 fix invalid log format
  • cc1c77f use set/get for reconnectingTimeout
  • cc78a3c introduce ConnPriorityStore

📊 Changes

25 files changed (+251 additions, -86 deletions)

View changed files

📝 .github/workflows/golang-test-darwin.yml (+1 -1)
📝 .github/workflows/golang-test-linux.yml (+6 -2)
📝 .github/workflows/golang-test-windows.yml (+10 -4)
📝 client/cmd/login_test.go (+2 -0)
📝 client/firewall/uspfilter/conntrack/udp.go (+6 -0)
📝 client/firewall/uspfilter/conntrack/udp_test.go (+2 -2)
📝 client/internal/dns/upstream.go (+5 -5)
📝 client/internal/dns/upstream_test.go (+16 -6)
📝 client/internal/engine.go (+6 -1)
📝 client/internal/lazyconn/activity/manager.go (+8 -0)
📝 client/internal/lazyconn/activity/manager_test.go (+22 -5)
📝 client/internal/networkmonitor/monitor.go (+15 -1)
📝 client/internal/networkmonitor/monitor_test.go (+5 -5)
📝 client/internal/peer/conn.go (+15 -15)
📝 client/internal/peer/conntype/priority.go (+14 -1)
📝 client/internal/peer/notifier_test.go (+26 -2)
📝 go.mod (+1 -1)
📝 go.sum (+2 -2)
📝 relay/client/guard.go (+15 -1)
📝 relay/client/manager.go (+6 -0)

...and 5 more files

📄 Description

Describe your changes

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/4175 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 7/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add/race-test` --- ### 📝 Commits (10+) - [`e66412d`](https://github.com/netbirdio/netbird/commit/e66412da1b700b4beb96deba51bf329c5f4c98c7) add race flag to client tests - [`7b4cc63`](https://github.com/netbirdio/netbird/commit/7b4cc6305461b9458a2b1e11d1f04f698356b159) update some tests - [`84988b4`](https://github.com/netbirdio/netbird/commit/84988b4d53aa80f9ff575670c90be0161028e08a) update checkChangeFn test usage - [`bdb38df`](https://github.com/netbirdio/netbird/commit/bdb38dfa576613f1cc5b1a19859c8858dff0edda) use relay manager.getClientLen() - [`62deb64`](https://github.com/netbirdio/netbird/commit/62deb64f5f569b59d17b124a4ac3de928c059c9c) use getHealthCheckInterval and setHealthCheckInterval - [`4e737a4`](https://github.com/netbirdio/netbird/commit/4e737a482be3af8aec67610ea070cd7c0f54ea10) rename and use getHeartBeatTimeout and setHeartBeatTimeout - [`09d0fea`](https://github.com/netbirdio/netbird/commit/09d0fea5ca7b4b2f65eefd684332d5bf15d57d87) use setters and getters for healthCheckInterval and healthCheckTimeout - [`d7d57a4`](https://github.com/netbirdio/netbird/commit/d7d57a4ec4ca54003a8fb0e533c7b419cd8f1820) fix invalid log format - [`cc1c77f`](https://github.com/netbirdio/netbird/commit/cc1c77f6dcdbea47418ecf08fc85906e12807118) use set/get for reconnectingTimeout - [`cc78a3c`](https://github.com/netbirdio/netbird/commit/cc78a3c65f2f6b3bcdc32212fa1cf7d7313cd2e6) introduce ConnPriorityStore ### 📊 Changes **25 files changed** (+251 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golang-test-darwin.yml` (+1 -1) 📝 `.github/workflows/golang-test-linux.yml` (+6 -2) 📝 `.github/workflows/golang-test-windows.yml` (+10 -4) 📝 `client/cmd/login_test.go` (+2 -0) 📝 `client/firewall/uspfilter/conntrack/udp.go` (+6 -0) 📝 `client/firewall/uspfilter/conntrack/udp_test.go` (+2 -2) 📝 `client/internal/dns/upstream.go` (+5 -5) 📝 `client/internal/dns/upstream_test.go` (+16 -6) 📝 `client/internal/engine.go` (+6 -1) 📝 `client/internal/lazyconn/activity/manager.go` (+8 -0) 📝 `client/internal/lazyconn/activity/manager_test.go` (+22 -5) 📝 `client/internal/networkmonitor/monitor.go` (+15 -1) 📝 `client/internal/networkmonitor/monitor_test.go` (+5 -5) 📝 `client/internal/peer/conn.go` (+15 -15) 📝 `client/internal/peer/conntype/priority.go` (+14 -1) 📝 `client/internal/peer/notifier_test.go` (+26 -2) 📝 `go.mod` (+1 -1) 📝 `go.sum` (+2 -2) 📝 `relay/client/guard.go` (+15 -1) 📝 `relay/client/manager.go` (+6 -0) _...and 5 more files_ </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 06:09:10 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#24821