VOL-2001 resolve sca errors
Change-Id: Iee4c814e721437c6f2f0d3387cac92be498ceb99
diff --git a/internal/pkg/afrouter/method-router_test.go b/internal/pkg/afrouter/method-router_test.go
index 47204dd..fd0285a 100644
--- a/internal/pkg/afrouter/method-router_test.go
+++ b/internal/pkg/afrouter/method-router_test.go
@@ -19,7 +19,6 @@
import (
"fmt"
"github.com/golang/protobuf/proto"
- "github.com/opencord/voltha-go/common/log"
common_pb "github.com/opencord/voltha-protos/go/common"
voltha_pb "github.com/opencord/voltha-protos/go/voltha"
"github.com/stretchr/testify/assert"
@@ -27,17 +26,6 @@
"testing"
)
-const (
- METHOD_ROUTER_PROTOFILE = "../../../vendor/github.com/opencord/voltha-protos/voltha.pb"
-)
-
-// Unit test initialization
-func init() {
- // Logger must be configured or bad things happen
- log.SetDefaultLogger(log.JSON, log.DebugLevel, log.Fields{"instanceId": 1})
- log.AddPackage(log.JSON, log.WarnLevel, nil)
-}
-
// Build an method router configuration
func MakeMethodTestConfig(numBackends int, numConnections int) (*RouteConfig, *RouterConfig) {
@@ -83,7 +71,7 @@
ProtoService: "VolthaService",
ProtoPackage: "voltha",
Routes: []RouteConfig{routeConfig},
- ProtoFile: METHOD_ROUTER_PROTOFILE,
+ ProtoFile: TEST_PROTOFILE,
}
return &routeConfig, &routerConfig
}