From 551e5bbb9b936220c9f467d5ccf1b124963b8ef0 Mon Sep 17 00:00:00 2001 From: Drishya R Date: Thu, 5 Feb 2026 16:36:58 +0530 Subject: [PATCH] reverted test case --- cmd/otpgateway/handlers_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/otpgateway/handlers_test.go b/cmd/otpgateway/handlers_test.go index 85bdaee..530fcf3 100644 --- a/cmd/otpgateway/handlers_test.go +++ b/cmd/otpgateway/handlers_test.go @@ -323,9 +323,8 @@ func TestDeleteOnOTPCheck(t *testing.T) { assert.Equal(t, http.StatusOK, r.StatusCode, "verification pending") // Reattempt status check - r = testRequest(t, http.MethodDelete, "/api/otp/"+dummyOTPID+"/status", nil, &out) - assert.Equal(t, http.StatusGone, r.StatusCode, "otp not found returns 410") - assert.Equal(t, "OTP has expired or doesn't exist", out.Message, "deleted OTP passed") + r = testRequest(t, http.MethodDelete, "/api/otp/"+dummyOTPID+"/status", nil, &data) + assert.Equal(t, http.StatusBadRequest, r.StatusCode, "otp not found") } func testRequest(t *testing.T, method, path string, p url.Values, out interface{}) *http.Response {