X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1-go%2Fpkg%2Fresthooks%2Fresthooks_test.go;h=ac3dc25ddf63e54cb4f17c87b99282ee54bab1af;hb=9f4fe4d725c9ad77ea1c2ab565ce5759e8a932a6;hp=a9fcc1e006a3e81797e9fee2eff1b772da7a87b0;hpb=644ae0afdf53d629e52d122a2e2f5a9cd1432224;p=ric-plt%2Fa1.git diff --git a/a1-go/pkg/resthooks/resthooks_test.go b/a1-go/pkg/resthooks/resthooks_test.go index a9fcc1e..ac3dc25 100644 --- a/a1-go/pkg/resthooks/resthooks_test.go +++ b/a1-go/pkg/resthooks/resthooks_test.go @@ -230,8 +230,9 @@ func TestGetPolicyInstanceStatus(t *testing.T) { keys[0] = instancekey sdlInst.On("Get", a1MediatorNs, keys[:]).Return(httpBody) - resp := rh.GetPolicyInstanceStatus(policyTypeId, policyInstanceID) + resp, errresp := rh.GetPolicyInstanceStatus(policyTypeId, policyInstanceID) + assert.Nil(t, errresp) assert.NotNil(t, resp) sdlInst.AssertExpectations(t) }