mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-04 09:51:16 +01:00
Refactor
This commit is contained in:
parent
8d9ea40bf1
commit
cf211f6337
@ -389,9 +389,9 @@ func TestDNSAccountPeerUpdate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Re-saving unchanged DNS settings with used groups should update account peers and not send peer update
|
// Saving unchanged DNS settings with used groups should update account peers and not send peer update
|
||||||
// since there is no change in the network map
|
// since there is no change in the network map
|
||||||
t.Run("re-saving unchanged dns setting with used groups", func(t *testing.T) {
|
t.Run("saving unchanged dns setting with used groups", func(t *testing.T) {
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
peerShouldNotReceiveUpdate(t, updMsg)
|
peerShouldNotReceiveUpdate(t, updMsg)
|
||||||
|
@ -381,9 +381,9 @@ func TestGroupAccountPeerUpdate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Re-saving unchanged group should trigger account peers update and not send peer update
|
// Saving an unchanged group should trigger account peers update and not send peer update
|
||||||
// since there is no change in the network map
|
// since there is no change in the network map
|
||||||
t.Run("re-saving unchanged group", func(t *testing.T) {
|
t.Run("saving unchanged group", func(t *testing.T) {
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
peerShouldNotReceiveUpdate(t, updMsg)
|
peerShouldNotReceiveUpdate(t, updMsg)
|
||||||
|
@ -901,9 +901,9 @@ func TestPolicyAccountPeerUpdate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Re-saving unchanged policy should trigger account peers update and not send peer update
|
// Saving unchanged policy should trigger account peers update and not send peer update
|
||||||
// since there is no change in the network map
|
// since there is no change in the network map
|
||||||
t.Run("re-saving unchanged policy", func(t *testing.T) {
|
t.Run("saving unchanged policy", func(t *testing.T) {
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
peerShouldNotReceiveUpdate(t, updMsg)
|
peerShouldNotReceiveUpdate(t, updMsg)
|
||||||
|
@ -226,9 +226,9 @@ func TestPostureCheckAccountPeerUpdate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Re-saving unchanged posture check should trigger account peers update and not send peer update
|
// Saving unchanged posture check should trigger account peers update and not send peer update
|
||||||
// // since there is no change in the network map
|
// since there is no change in the network map
|
||||||
t.Run("re-saving unchanged posture check", func(t *testing.T) {
|
t.Run("saving unchanged posture check", func(t *testing.T) {
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
peerShouldNotReceiveUpdate(t, updMsg)
|
peerShouldNotReceiveUpdate(t, updMsg)
|
||||||
|
Loading…
Reference in New Issue
Block a user