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 a83c966
Showing 1 changed file with 3 additions and 0 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)

}

0 comments on commit a83c966

Please sign in to comment.