Skip to content

Commit

Permalink
Update gnoi_system_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ndas7 authored Jan 10, 2025
1 parent 32277ed commit f63d712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnmi_server/gnoi_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func TestSystem(t *testing.T) {
Message: "Cold reboot due to ...",
}

for _, method := range []syspb.RebootMethod{syspb.RebootMethod_UNKNOWN, syspb.RebootMethod_HALT, syspb.RebootMethod_POWERUP} {
for _, method := range []syspb.RebootMethod{syspb.RebootMethod_UNKNOWN, syspb.RebootMethod_POWERUP} {
req.Method = method
_, err := sc.Reboot(ctx, req)
testErr(err, codes.InvalidArgument, "reboot method is not supported.", t)
Expand Down Expand Up @@ -336,4 +336,4 @@ func TestSystem(t *testing.T) {
t.Fatalf("Invalid System Time %d", resp.Time)
}
})
}
}

0 comments on commit f63d712

Please sign in to comment.