Add invalid id test
This commit is contained in:
parent
9cb71d53cf
commit
74536bd49d
@ -594,6 +594,11 @@ func TestCompleteTask(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestCompleteTaskInvalidId(t *testing.T) {
|
||||
e := startServer(t)
|
||||
e.POST("/task/999/complete").Expect().Status(404)
|
||||
}
|
||||
|
||||
func getDelta(base time.Time, delta float64) (time.Time, time.Time) {
|
||||
start := base.Add(-time.Duration(delta) * time.Second)
|
||||
end := base.Add(time.Duration(delta) * time.Second)
|
||||
|
Loading…
x
Reference in New Issue
Block a user