vocdoni / vaas-api

Centralized backend & server for Vocdoni's Voting-as-a-Service API
GNU Affero General Public License v3.0
2 stars 1 forks source link

Fix near-future process bug #45

Closed NateWilliams2 closed 2 years ago

NateWilliams2 commented 2 years ago

This pr fixed a bug where occasionally, in testing, a process would be created in the very near future. This would cause the startBlockto be non-zero but very close to the vochain block height, which could result in an error.

Now, the startBlock is simply set to zero so the process starts immediately.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1820028277


Changes Missing Coverage Covered Lines Changed/Added Lines %
urlapi/entity.go 3 4 75.0%
<!-- Total: 3 4 75.0% -->
Totals Coverage Status
Change from base Build 1792031849: 0.06%
Covered Lines: 1890
Relevant Lines: 3393

💛 - Coveralls