Fixing tests and CI file

This commit is contained in:
Denis Makogon
2017-07-28 13:32:13 +03:00
parent 49fe3eb11a
commit bb8f12ece9
4 changed files with 9 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ func getTestServer(mockTasks []*models.Task) *httptest.Server {
c.JSON(http.StatusInternalServerError, err)
return
}
c.JSON(http.StatusAccepted, task)
c.JSON(http.StatusOK, task)
}
delHandler := func(c *gin.Context) {
@@ -120,7 +120,7 @@ func TestGetTaskError(t *testing.T) {
{
"url": "/invalid",
"task": getMockTask(),
"error": "json: cannot unmarshal number into Go value of type models.Task", // TODO WTF!
"error": "Unable to get task. Reason: 404 Not Found",
},
}