[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:
mlsmaycon
2026-08-12 14:24:53 +00:00
parent 65539780e5
commit 6aba3d0f73

View File

@@ -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{