Skip to content

Commit

Permalink
[eclipse-kanto#44] Fixed time delta config property name
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Zhechev <Nikola.Zhechev@bosch.io>
  • Loading branch information
nzhechev-bosch committed Sep 14, 2022
1 parent e301149 commit a5ecc0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type testConfig struct {

EventTimeoutMs int `def:"30000"`

TimeDeltaMS int `def:"5000"`
TimeDeltaMs int `def:"5000"`
}

type thingConfig struct {
Expand Down Expand Up @@ -209,7 +209,7 @@ func (suite *ConnectorSuite) TestConnectionStatus() {
suite.T().Logf("%+v", status)
suite.T().Logf("current time: %v", time.Now())

delta := int64(suite.cfg.TimeDeltaMS)
delta := int64(suite.cfg.TimeDeltaMs)
assert.Less(suite.T(), status.ReadySince.UnixMilli(), time.Now().UnixMilli()+delta, "readySince should be BEFORE current time")
assert.Greater(suite.T(), status.ReadySince.UnixMilli(), time.Now().UnixMilli()-delta, "readyUntil should be AFTER current time")
}
Expand Down

0 comments on commit a5ecc0f

Please sign in to comment.