Revert "config: rename test struct field to args"

This reverts commit f2a291a4704c9954c441567860ca740ac0f58308.
This commit is contained in:
Frank Schröder 2017-10-23 09:58:19 +02:00
parent 0f0b510f37
commit b580f7a533
2 changed files with 210 additions and 210 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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 }] }`},