[PR #705] [MERGED] fix/use-regex-in-formatter-test #12898

Closed
opened 2026-08-05 02:06:57 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/705
Author: @pascal-fischer
Created: 2/27/2023
Status: Merged
Merged: 2/28/2023
Merged by: @braginini

Base: mainHead: fix/use-regex-in-formatter-test


📝 Commits (1)

  • 882caf9 use regex in formatter test because order of attributes can vary

📊 Changes

1 file changed (+2 additions, -3 deletions)

View changed files

📝 formatter/formatter_test.go (+2 -3)

📄 Description

Describe your changes

Fix test for formatter where the attributes are changing order for some reason to not have random test failures.
Used regex to catch both cases.

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

🔄 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/705 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 2/27/2023 **Status:** ✅ Merged **Merged:** 2/28/2023 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `fix/use-regex-in-formatter-test` --- ### 📝 Commits (1) - [`882caf9`](https://github.com/netbirdio/netbird/commit/882caf96d121d4a1a72b6a04fc00e3e4497833b1) use regex in formatter test because order of attributes can vary ### 📊 Changes **1 file changed** (+2 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `formatter/formatter_test.go` (+2 -3) </details> ### 📄 Description ## Describe your changes Fix test for formatter where the attributes are changing order for some reason to not have random test failures. Used regex to catch both cases. ## Issue ticket number and link ### Checklist - [x] 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 --- <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 02:06:57 -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#12898