Skip to content
Snippets Groups Projects

Fix: Set does not update the model within the database

Merged Ghost User requested to merge hotfix-set-does-not-update-database-model into develop
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -1000,12 +1000,11 @@ func Test_pndImplementation_Confirm(t *testing.T) {
t.Error(err)
return
}
_, err = pnd.ChangeMNE(mne.ID(), ppb.ApiOperation_API_OPERATION_UPDATE, "system/config/hostname", "ceos3000")
u, err := pnd.ChangeMNE(mne.ID(), ppb.ApiOperation_API_OPERATION_UPDATE, "system/config/hostname", "ceos3000")
if err != nil {
t.Error(err)
return
}
u := pnd.PendingChanges()[0]
if tt.name != "uncommitted" {
if err := pnd.Commit(u); (err != nil) != tt.wantErr {
t.Errorf("Confirm() error = %v, wantErr %v", err, tt.wantErr)
Loading