X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fpolicy%2FpolicyManager_test.go;fp=pkg%2Fpolicy%2FpolicyManager_test.go;h=0eae6d3c7b3890cea6c90673049fc10cfc5d2251;hb=5152bd39551f19139752d89a795327ca9dd189db;hp=003cd67311f32b9e83cc70632ef6368430b0df1a;hpb=272fb5b36779f68a944ca317fa6a6159da0128e3;p=ric-plt%2Fa1.git diff --git a/pkg/policy/policyManager_test.go b/pkg/policy/policyManager_test.go index 003cd67..0eae6d3 100644 --- a/pkg/policy/policyManager_test.go +++ b/pkg/policy/policyManager_test.go @@ -48,11 +48,10 @@ func TestMain(m *testing.M) { func TestSetPolicyInstance(t *testing.T) { var policyTypeId int policyTypeId = 20001 - var policyInstanceID int - policyInstanceID = 123456 + policyInstanceID := "123456" var status string status = "OK" - instancehandlerKey := a1HandlerPrefix + strconv.FormatInt(20001, 10) + "." + strconv.FormatInt(int64(policyInstanceID), 10) + instancehandlerKey := a1HandlerPrefix + strconv.FormatInt(20001, 10) + "." + policyInstanceID instancearr := []interface{}{instancehandlerKey, status} sdlInst.On("Set", "A1m_ns", instancearr).Return(nil) errresp := pm.SetPolicyInstanceStatus(policyTypeId, policyInstanceID, status)