Skip to content

Commit

Permalink
gNOI System APIs (Reboot, RebootStatus, CancelReboot) changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndas7 committed Oct 31, 2024
1 parent 457de62 commit bfef03a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions gnmi_server/gnoi_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,13 @@ func TestSystem(t *testing.T) {
done := make(chan bool, 1)
go rebootBackendResponse(t, rclient, codes.Unauthenticated, fvs, done, rebootKey)
defer func() { done <- true }()
// Start goroutine for mock Reboot Backend to respond to Reboot requests
done := make(chan bool, 1)
go rebootBackendResponse(t, rclient, codes.Unauthenticated, fvs, done, rebootKey)
defer func() { done <- true }()
req := &syspb.RebootRequest{
Method: syspb.RebootMethod_COLD,
Delay: 0,
Message: "Cold reboot starting ...",
}
_, err := sc.Reboot(ctx, req)
testErr(err, codes.Internal, "Response Notification returned SWSS Error code: Internal", t)
_, err := sc.Reboot(ctx, req)
testErr(err, codes.Internal, "Response Notification returned SWSS Error code: Internal", t)
})
t.Run("RebootSucceeds", func(t *testing.T) {
// Start goroutine for mock Reboot Backend to respond to Reboot requests
Expand Down

0 comments on commit bfef03a

Please sign in to comment.