Merge branch 'main' into embedded-vnc

This commit is contained in:
Viktor Liu
2026-09-02 19:10:03 +02:00
153 changed files with 9089 additions and 1934 deletions
+4 -4
View File
@@ -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{