Fix tests from cli changes

This commit is contained in:
Harshavardhana 2017-02-15 18:05:55 -08:00
parent 611bd68739
commit 271e3ecde5

View File

@ -367,7 +367,7 @@ func TestCheckServerSyntax(t *testing.T) {
app.Commands = []cli.Command{serverCmd} app.Commands = []cli.Command{serverCmd}
serverFlagSet := flag.NewFlagSet("server", 0) serverFlagSet := flag.NewFlagSet("server", 0)
serverFlagSet.String("address", ":9000", "") serverFlagSet.String("address", ":9000", "")
ctx := cli.NewContext(app, serverFlagSet, serverFlagSet) ctx := cli.NewContext(app, serverFlagSet, nil)
disksGen := func(n int) []string { disksGen := func(n int) []string {
disks, err := getRandomDisks(n) disks, err := getRandomDisks(n)
@ -458,7 +458,7 @@ func TestInitServer(t *testing.T) {
app.Commands = []cli.Command{serverCmd} app.Commands = []cli.Command{serverCmd}
serverFlagSet := flag.NewFlagSet("server", 0) serverFlagSet := flag.NewFlagSet("server", 0)
serverFlagSet.String("address", ":9000", "") serverFlagSet.String("address", ":9000", "")
ctx := cli.NewContext(app, serverFlagSet, serverFlagSet) ctx := cli.NewContext(app, serverFlagSet, nil)
root, err := newTestConfig(globalMinioDefaultRegion) root, err := newTestConfig(globalMinioDefaultRegion)
if err != nil { if err != nil {