mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
config: rename test struct field to args
This commit is contained in:
parent
f6e9ad99ec
commit
1fef7f4b67
File diff suppressed because it is too large
Load Diff
@ -16,7 +16,7 @@ func TestSegments(t *testing.T) {
|
||||
tests := []configTest{
|
||||
{
|
||||
desc: "segment name not in OSS",
|
||||
flags: []string{
|
||||
args: []string{
|
||||
`-data-dir=` + dataDir,
|
||||
},
|
||||
json: []string{`{ "server": true, "segment": "a" }`},
|
||||
@ -25,7 +25,7 @@ func TestSegments(t *testing.T) {
|
||||
},
|
||||
{
|
||||
desc: "segment port must be set",
|
||||
flags: []string{
|
||||
args: []string{
|
||||
`-data-dir=` + dataDir,
|
||||
},
|
||||
json: []string{`{ "segments":[{ "name":"x" }] }`},
|
||||
@ -34,7 +34,7 @@ func TestSegments(t *testing.T) {
|
||||
},
|
||||
{
|
||||
desc: "segments not in OSS",
|
||||
flags: []string{
|
||||
args: []string{
|
||||
`-data-dir=` + dataDir,
|
||||
},
|
||||
json: []string{`{ "segments":[{ "name":"x", "port": 123 }] }`},
|
||||
|
Loading…
x
Reference in New Issue
Block a user