From: Kiran Kamineni Date: Thu, 29 Mar 2018 04:26:56 +0000 (-0700) Subject: Fix build failure for patch 39785 X-Git-Tag: 2.0.0-ONAP~44 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=de3b2f2916e8960f220f36fdb1ac5f04b0fc5499;p=aaf%2Fsms.git Fix build failure for patch 39785 Patch 39785 caused a unit test failure Fixing that here Issue-ID: AAF-202 Change-Id: I41dd2883f353e266a48033584c7b83a3670fcc62 Signed-off-by: Kiran Kamineni --- diff --git a/sms-service/src/sms/handler/handler_test.go b/sms-service/src/sms/handler/handler_test.go index 5e9e965..25dc19f 100644 --- a/sms-service/src/sms/handler/handler_test.go +++ b/sms-service/src/sms/handler/handler_test.go @@ -199,7 +199,7 @@ func TestDeleteSecretHandler(t *testing.T) { hr := http.HandlerFunc(h.deleteSecretHandler) hr.ServeHTTP(rr, req) - if rr.Code != http.StatusOK { + if rr.Code != http.StatusNoContent { t.Errorf("Expected statusCreated return code. Got: %v", rr.Code) } }