Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
xBlaz3kx committed Jul 29, 2024
1 parent 06365c1 commit 5c95391
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ocpp_v16/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ func (s *ConfigurationManagerTestSuite) TestUpdateConfiguration() {
// Key found
err := s.manager.UpdateKey(HeartbeatInterval, lo.ToPtr("123"))
s.Assert().NoError(err)

value, err := s.manager.GetConfigurationValue(HeartbeatInterval)
s.Assert().NoError(err)
s.Assert().NotNil(value)
s.Assert().Equal("123", *value)

err = s.manager.UpdateKey(HeartbeatInterval, nil)
s.Assert().NoError(err)

value, err = s.manager.GetConfigurationValue(HeartbeatInterval)
s.Assert().NoError(err)
Expand Down

0 comments on commit 5c95391

Please sign in to comment.