Adds health check and test

This commit is contained in:
2020-12-31 18:47:27 -06:00
parent 0e16bb5361
commit e77d3c4d5e
5 changed files with 149 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ type errorStore struct {
error error
}
func getErrorModel() *models.Model {
e := &errorStore{error: fmt.Errorf("Model always errors")}
func getErrorModel(errorMsg string) *models.Model {
e := &errorStore{error: fmt.Errorf(errorMsg)}
return models.New(e)
}