mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-24 14:29:07 +02:00
Account for the VNC peer flag in the peer meta field-count guard
This commit is contained in:
@@ -573,7 +573,10 @@ func TestSqlStore_SavePeer(t *testing.T) {
|
|||||||
|
|
||||||
numOfFields, err := populateFields.PopulateAll(reflectedMetadata)
|
numOfFields, err := populateFields.PopulateAll(reflectedMetadata)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.Equal(t, 32, numOfFields)
|
// 33 rather than upstream's 32: Flags carries ServerVNCAllowed here. Flags
|
||||||
|
// round-trips as the meta_flags blob on both the gorm and pgx paths, so a
|
||||||
|
// new flag needs no query change.
|
||||||
|
assert.Equal(t, 33, numOfFields)
|
||||||
|
|
||||||
// save status of non-existing peer
|
// save status of non-existing peer
|
||||||
peer := &nbpeer.Peer{
|
peer := &nbpeer.Peer{
|
||||||
|
|||||||
Reference in New Issue
Block a user