Tests[SendWithTimestamp, SendInvalidTimestamp]

This commit is contained in:
2022-11-30 22:29:12 +01:00
parent e0ecd4d9ff
commit 7eab74e65c
8 changed files with 209 additions and 10 deletions

View File

@@ -184,7 +184,7 @@ func (h CommonHandler) Sleep(g *gin.Context) ginresp.HTTPResponse {
return ginresp.APIError(g, 400, apierr.BINDFAIL_URI_PARAM, "Failed to read uri", err)
}
time.Sleep(timeext.FromSecondsFloat64(u.Seconds))
time.Sleep(timeext.FromSeconds(u.Seconds))
t1 := time.Now().Format(time.RFC3339Nano)