Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adibrastegarnia committed Sep 14, 2020
1 parent ea01eff commit bb6ea72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/ha/session_failover.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const (
mastershipMasterKey = "onos-config.mastership.master"
)

// TestSessionFailOver tests gnmi session failover is happening when the master node
// is crashed
func (s *TestSuite) TestSessionFailOver(t *testing.T) {
simulator := gnmi.CreateSimulator(t)
assert.NotNil(t, simulator)
Expand Down Expand Up @@ -60,5 +62,6 @@ func (s *TestSuite) TestSessionFailOver(t *testing.T) {
d.Protocols[0].ChannelState == device.ChannelState_CONNECTED &&
d.Protocols[0].ServiceState == device.ServiceState_AVAILABLE
}, 70*time.Second)
assert.Equal(t, true, found)

}
3 changes: 0 additions & 3 deletions test/ha/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
package ha

import (
"sync"

"github.com/onosproject/onos-test/pkg/onostest"

"github.com/onosproject/helmit/pkg/helm"
Expand All @@ -30,7 +28,6 @@ type testSuite struct {
// TestSuite is the onos-config CLI test suite
type TestSuite struct {
testSuite
mux sync.Mutex
}

const onosComponentName = "onos-config"
Expand Down

0 comments on commit bb6ea72

Please sign in to comment.