Commit Graph

2 Commits

Author SHA1 Message Date
Yusef Napora ac70e7e738 be less dependent on accurate time calculations in test
thanks travis...
2020-04-23 22:00:08 +03:00
dirkmc b2de9a56fe
Score tests (#288)
* test: score time in mesh

* add TestScoreFirstMessageDeliveries

* rm redundant initialization to zero

* add TestScoreFirstMessageDeliveriesCap

* add TestScoreFirstMessageDeliveriesDecay

* fix comment

* add TestScoreMeshMessageDeliveries

* comments

* add TestScoreMeshFailurePenalty

* add TestScoreInvalidMessageDeliveries

also, TestScoreInvalidMessageDeliveriesDecay

* add TestScoreApplicationScore

* add TestScoreIPColocation

* add TestScoreMeshMessageDeliveriesDecay

* add TestScoreRetention

* try longer interval for TimeInMesh test

we seem to take longer to collect the score on travis,
which causes the score to be outside the expected bounds.
hopefully a longer wait time will give us more wiggle room.

Co-authored-by: Yusef Napora <yusef@protocol.ai>
2020-04-23 13:03:52 -04:00