config: rename test struct field to args

pull/3598/head
Frank Schroeder 2017-10-20 11:46:16 +02:00
parent f6e9ad99ec
commit 1fef7f4b67
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
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",
flags: []string{ args: []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",
flags: []string{ args: []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",
flags: []string{ args: []string{
`-data-dir=` + dataDir, `-data-dir=` + dataDir,
}, },
json: []string{`{ "segments":[{ "name":"x", "port": 123 }] }`}, json: []string{`{ "segments":[{ "name":"x", "port": 123 }] }`},