VOL-1900 lint warning fixes ro_core
Change-Id: I5ce82f2d188d215ba9620d0923a1101ed4e5e4a8
diff --git a/ro_core/core/grpc_nbi_api_handler_test.go b/ro_core/core/grpc_nbi_api_handler_test.go
index bc40ce8..3244fd3 100644
--- a/ro_core/core/grpc_nbi_api_handler_test.go
+++ b/ro_core/core/grpc_nbi_api_handler_test.go
@@ -17,14 +17,15 @@
import (
"context"
+ "strconv"
+ "testing"
+
"github.com/opencord/voltha-go/ro_core/config"
"github.com/opencord/voltha-lib-go/v2/pkg/log"
"github.com/opencord/voltha-protos/v2/go/common"
"github.com/opencord/voltha-protos/v2/go/voltha"
"github.com/phayes/freeport"
"github.com/stretchr/testify/assert"
- "strconv"
- "testing"
)
func MakeTestGrpcNbiConfig() *Core {
@@ -77,7 +78,7 @@
ComponentName: "testing",
PackageName: "testing",
Level: voltha.LogLevel_LogLevel(log.GetDefaultLogLevel())}
- testLog_3 := &voltha.Logging{
+ testLog3 := &voltha.Logging{
ComponentName: "testing",
PackageName: "github.com/opencord/voltha-go/ro_core/core",
Level: 3 /*voltha.LogLevel_LogLevel(log.GetDefaultLogLevel())*/}
@@ -97,7 +98,7 @@
{"TestUpdateLogLevel-1", ahndl, args{testCtx, testLogDef}, 0, nil},
{"TestUpdateLogLevel-2", ahndl, args{testCtx, testLogEmpty}, 5, nil},
{"TestUpdateLogLevel-3", ahndl, args{testCtx, testLog}, 5, nil},
- {"TestUpdateLogLevel-4", ahndl, args{testCtx, testLog_3}, 3, nil},
+ {"TestUpdateLogLevel-4", ahndl, args{testCtx, testLog3}, 3, nil},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {