mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-30 18:49:08 +02:00
Merge branch 'main' into embedded-vnc
This commit is contained in:
@@ -573,10 +573,10 @@ func TestSqlStore_SavePeer(t *testing.T) {
|
||||
|
||||
numOfFields, err := populateFields.PopulateAll(reflectedMetadata)
|
||||
assert.NoError(t, err)
|
||||
// 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)
|
||||
// The count includes nested struct fields, so every flag added to Flags
|
||||
// moves it. 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, 34, numOfFields)
|
||||
|
||||
// save status of non-existing peer
|
||||
peer := &nbpeer.Peer{
|
||||
|
||||
Reference in New Issue
Block a user