diff --git a/ocpp_v16/configuration_test.go b/ocpp_v16/configuration_test.go index fd655e0..440d932 100644 --- a/ocpp_v16/configuration_test.go +++ b/ocpp_v16/configuration_test.go @@ -74,6 +74,7 @@ func (s *OcppConfigTest) TestGetConfigurationValue() { // Invalid key value, err = s.config.GetConfigurationValue("Test4") s.Assert().Error(err) + s.Assert().Nil(value) } func (s *OcppConfigTest) TestGetVersion() { diff --git a/ocpp_v16/manager.go b/ocpp_v16/manager.go index 9c3575e..1531243 100644 --- a/ocpp_v16/manager.go +++ b/ocpp_v16/manager.go @@ -29,12 +29,11 @@ type ( } ManagerV16 struct { - supportedProfiles []string - ocppConfig *Config - mandatoryKeys []Key - keyValidator KeyValidator - onUpdateHandlers map[Key]OnUpdateHandler - mu sync.Mutex + ocppConfig *Config + mandatoryKeys []Key + keyValidator KeyValidator + onUpdateHandlers map[Key]OnUpdateHandler + mu sync.Mutex } )