mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixing tests and CI file
This commit is contained in:
@@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user