Fix build failure for patch 39785 83/39983/1
authorKiran Kamineni <kiran.k.kamineni@intel.com>
Thu, 29 Mar 2018 04:26:56 +0000 (21:26 -0700)
committerKiran Kamineni <kiran.k.kamineni@intel.com>
Thu, 29 Mar 2018 04:27:00 +0000 (21:27 -0700)
Patch 39785 caused a unit test failure
Fixing that here

Issue-ID: AAF-202
Change-Id: I41dd2883f353e266a48033584c7b83a3670fcc62
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
sms-service/src/sms/handler/handler_test.go

index 5e9e965..25dc19f 100644 (file)
@@ -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)
        }
 }