mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-29 11:01:29 +02:00
[management] Bump peer-metadata field-count guard for RemoteJobsAllowed
TestSqlStore_SavePeer reflects over every field of PeerSystemMeta via PopulateAll and asserts the count, so that a newly added metadata field forces the author to confirm it round-trips through the store. This PR added Flags.RemoteJobsAllowed (a value bool inside the JSON-serialized Flags), taking the recursive leaf count from 32 to 33. The field does round-trip via the existing Flags JSON serializer, so update the expected count. Fixes the deterministic Management/Unit store failure on all backends.
This commit is contained in:
@@ -573,7 +573,7 @@ func TestSqlStore_SavePeer(t *testing.T) {
|
||||
|
||||
numOfFields, err := populateFields.PopulateAll(reflectedMetadata)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, 32, numOfFields)
|
||||
assert.Equal(t, 33, numOfFields)
|
||||
|
||||
// save status of non-existing peer
|
||||
peer := &nbpeer.Peer{
|
||||
|
||||
Reference in New Issue
Block a user