Browse Source

test: Moves a variable closer to where it's used.

pull/3011/head
James Phillips 8 years ago committed by Frank Schroeder
parent
commit
888fa5cad6
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
  1. 3
      command/agent/operator_endpoint_test.go

3
command/agent/operator_endpoint_test.go

@ -476,9 +476,10 @@ func TestOperator_ServerHealth(t *testing.T) {
}
func TestOperator_ServerHealth_Unhealthy(t *testing.T) {
threshold := time.Duration(-1)
cb := func(c *Config) {
c.RaftProtocol = 3
threshold := time.Duration(-1)
c.Autopilot.LastContactThreshold = &threshold
}
httpTestWithConfig(t, func(srv *HTTPServer) {

Loading…
Cancel
Save