aboutsummaryrefslogtreecommitdiffstats
path: root/src/orchestrator/pkg/infra/db/mock.go
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2020-02-28 14:34:28 -0800
committerRitu Sood <ritu.sood@intel.com>2020-02-28 14:34:28 -0800
commit9ee11aa7d0bf1cef6d741efcb3a99981ef47208b (patch)
treef97df1e760809d17285af827e8e5d275b7053657 /src/orchestrator/pkg/infra/db/mock.go
parentbab1c76b08725c9e056b7f40335c43988a12fdd9 (diff)
Remove String function
Removing String from interface as this is not required anymore Issue-ID: MULTICLOUD-1001 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I40a950bb343f4cfcc5d51e52e44d0f788fc5e303
Diffstat (limited to 'src/orchestrator/pkg/infra/db/mock.go')
-rw-r--r--src/orchestrator/pkg/infra/db/mock.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/orchestrator/pkg/infra/db/mock.go b/src/orchestrator/pkg/infra/db/mock.go
index afa4b024..6b46a524 100644
--- a/src/orchestrator/pkg/infra/db/mock.go
+++ b/src/orchestrator/pkg/infra/db/mock.go
@@ -15,6 +15,7 @@ package db
import (
"encoding/json"
+ "fmt"
pkgerrors "github.com/pkg/errors"
)
@@ -62,8 +63,9 @@ func (m *MockDB) Read(table string, key Key, tag string) ([]byte, error) {
return nil, m.Err
}
+ str := fmt.Sprintf("%v", key)
for k, v := range m.Items {
- if k == key.String() {
+ if k == str {
return v[tag], nil
}
}