Revert "config: rename test struct field to args"
This reverts commit f2a291a4704c9954c441567860ca740ac0f58308.
This commit is contained in:
parent
0f0b510f37
commit
b580f7a533
File diff suppressed because it is too large
Load Diff
|
@ -16,7 +16,7 @@ func TestSegments(t *testing.T) {
|
||||||
tests := []configTest{
|
tests := []configTest{
|
||||||
{
|
{
|
||||||
desc: "segment name not in OSS",
|
desc: "segment name not in OSS",
|
||||||
args: []string{
|
flags: []string{
|
||||||
`-data-dir=` + dataDir,
|
`-data-dir=` + dataDir,
|
||||||
},
|
},
|
||||||
json: []string{`{ "server": true, "segment": "a" }`},
|
json: []string{`{ "server": true, "segment": "a" }`},
|
||||||
|
@ -25,7 +25,7 @@ func TestSegments(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
desc: "segment port must be set",
|
desc: "segment port must be set",
|
||||||
args: []string{
|
flags: []string{
|
||||||
`-data-dir=` + dataDir,
|
`-data-dir=` + dataDir,
|
||||||
},
|
},
|
||||||
json: []string{`{ "segments":[{ "name":"x" }] }`},
|
json: []string{`{ "segments":[{ "name":"x" }] }`},
|
||||||
|
@ -34,7 +34,7 @@ func TestSegments(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
desc: "segments not in OSS",
|
desc: "segments not in OSS",
|
||||||
args: []string{
|
flags: []string{
|
||||||
`-data-dir=` + dataDir,
|
`-data-dir=` + dataDir,
|
||||||
},
|
},
|
||||||
json: []string{`{ "segments":[{ "name":"x", "port": 123 }] }`},
|
json: []string{`{ "segments":[{ "name":"x", "port": 123 }] }`},
|
||||||
|
|
Loading…
Reference in New Issue