[PR #257] [MERGED] Call start services function for tests #2657

Closed
opened 2025-11-20 07:12:08 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/257
Author: @mlsmaycon
Created: 3/10/2022
Status: Merged
Merged: 3/10/2022
Merged by: @mlsmaycon

Base: mainHead: add-single-service-starter-func


📝 Commits (4)

  • 1f3b803 Call start services function for tests
  • 4816b79 Call start services function for tests
  • c54253c Call start services function for tests
  • bcd7bd5 Call start services function for tests

📊 Changes

4 files changed (+33 additions, -71 deletions)

View changed files

📝 client/cmd/login_test.go (+2 -20)
📝 client/cmd/testutil.go (+24 -0)
📝 client/cmd/up_daemon_test.go (+2 -24)
📝 client/cmd/up_test.go (+5 -27)

📄 Description

when testing CMDs we were using some global variables which got replaced by parallel tests.

Now we will call a single function independently for each test.


🔄 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/257 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 3/10/2022 **Status:** ✅ Merged **Merged:** 3/10/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `add-single-service-starter-func` --- ### 📝 Commits (4) - [`1f3b803`](https://github.com/netbirdio/netbird/commit/1f3b80368a515e9b3f6d950599f43bb161487d16) Call start services function for tests - [`4816b79`](https://github.com/netbirdio/netbird/commit/4816b7931e45f2ea15ff40fd5a5728ba0160ad7d) Call start services function for tests - [`c54253c`](https://github.com/netbirdio/netbird/commit/c54253c3b7df49bf668089a3a16f8c1c793a9c7a) Call start services function for tests - [`bcd7bd5`](https://github.com/netbirdio/netbird/commit/bcd7bd570a0e5c319a1e61c04970927b9a04b995) Call start services function for tests ### 📊 Changes **4 files changed** (+33 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/login_test.go` (+2 -20) 📝 `client/cmd/testutil.go` (+24 -0) 📝 `client/cmd/up_daemon_test.go` (+2 -24) 📝 `client/cmd/up_test.go` (+5 -27) </details> ### 📄 Description when testing CMDs we were using some global variables which got replaced by parallel tests. Now we will call a single function independently for each test. --- <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 2025-11-20 07:12:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2657