fixed zero vote limit not respected and treated as unlimited (#224)

* fixed problem when zero vote limit was not respected and was treated as unlimited

* fixed TestRest_Vote
This commit is contained in:
Aleksandr Melnikov
2018-11-24 12:05:02 -06:00
committed by Umputun
parent f8e36551ea
commit f8517fd6a8
3 changed files with 14 additions and 4 deletions
+1
View File
@@ -98,6 +98,7 @@ func prep(t *testing.T) (srv *Rest, ts *httptest.Server) {
EditDuration: 5 * time.Minute,
MaxCommentSize: 4000,
AdminStore: adminStore,
MaxVotes: -1,
}
srv = &Rest{
DataService: dataStore,