Change node name based on idx
This commit is contained in:
parent
5b08cd712e
commit
6851b36e88
|
@ -49,6 +49,7 @@ type TestAddressConfig struct {
|
||||||
|
|
||||||
// TestServerConfig is the main server configuration struct.
|
// TestServerConfig is the main server configuration struct.
|
||||||
type TestServerConfig struct {
|
type TestServerConfig struct {
|
||||||
|
NodeName string `json:"node_name"`
|
||||||
Bootstrap bool `json:"bootstrap,omitempty"`
|
Bootstrap bool `json:"bootstrap,omitempty"`
|
||||||
Server bool `json:"server,omitempty"`
|
Server bool `json:"server,omitempty"`
|
||||||
DataDir string `json:"data_dir,omitempty"`
|
DataDir string `json:"data_dir,omitempty"`
|
||||||
|
@ -70,6 +71,7 @@ func defaultServerConfig() *TestServerConfig {
|
||||||
idx := int(atomic.AddUint64(&offset, 1))
|
idx := int(atomic.AddUint64(&offset, 1))
|
||||||
|
|
||||||
return &TestServerConfig{
|
return &TestServerConfig{
|
||||||
|
NodeName: fmt.Sprintf("node%d", idx),
|
||||||
DisableCheckpoint: true,
|
DisableCheckpoint: true,
|
||||||
Bootstrap: true,
|
Bootstrap: true,
|
||||||
Server: true,
|
Server: true,
|
||||||
|
|
Loading…
Reference in New Issue