mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-27 23:09:08 +01:00
Add context parameter to AffectsPosture function in unit tests
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package posture
|
package posture
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"net/netip"
|
"net/netip"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@@ -122,7 +123,7 @@ func TestAffectsPosture(t *testing.T) {
|
|||||||
|
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
got := AffectsPosture(tt.diff, tt.checks)
|
got := AffectsPosture(context.Background(), tt.diff, tt.checks)
|
||||||
assert.Equal(t, tt.want, got, "AffectsPosture result should match expectation")
|
assert.Equal(t, tt.want, got, "AffectsPosture result should match expectation")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user