[management] Count the new setting in the Settings round-trip guard

Test_AccountSettings_SaveAndRetrieve asserts how many exported fields
types.Settings has, so that adding one forces whoever added it to confirm it
survives a save and reload. DebugBundleUploadURL made it 28 and the assertion
still said 27.

With the count corrected the test populates the new field too and passes on
sqlite, postgres and mysql, which is the confirmation the guard exists to get.
This commit is contained in:
riccardom
2026-09-25 16:13:38 +02:00
parent 483f4c3e47
commit a676771e8d
+1 -1
View File
@@ -331,7 +331,7 @@ func Test_AccountSettings_SaveAndRetrieve(t *testing.T) {
settings := types.Settings{} settings := types.Settings{}
numOfExportedFields, err := populateFields.PopulateAll(reflect.ValueOf(&settings).Elem()) numOfExportedFields, err := populateFields.PopulateAll(reflect.ValueOf(&settings).Elem())
assert.NoError(t, err) assert.NoError(t, err)
assert.Equal(t, 27, numOfExportedFields) assert.Equal(t, 28, numOfExportedFields)
account.Settings = &settings account.Settings = &settings
err = store.SaveAccount(context.Background(), account) err = store.SaveAccount(context.Background(), account)