Add invalid id test

This commit is contained in:
Sebastiaan de Schaetzen 2025-05-18 08:32:33 +02:00
parent 9cb71d53cf
commit 74536bd49d

View File

@ -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)