mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Fix tests from cli changes
This commit is contained in:
parent
611bd68739
commit
271e3ecde5
@ -367,7 +367,7 @@ func TestCheckServerSyntax(t *testing.T) {
|
||||
app.Commands = []cli.Command{serverCmd}
|
||||
serverFlagSet := flag.NewFlagSet("server", 0)
|
||||
serverFlagSet.String("address", ":9000", "")
|
||||
ctx := cli.NewContext(app, serverFlagSet, serverFlagSet)
|
||||
ctx := cli.NewContext(app, serverFlagSet, nil)
|
||||
|
||||
disksGen := func(n int) []string {
|
||||
disks, err := getRandomDisks(n)
|
||||
@ -458,7 +458,7 @@ func TestInitServer(t *testing.T) {
|
||||
app.Commands = []cli.Command{serverCmd}
|
||||
serverFlagSet := flag.NewFlagSet("server", 0)
|
||||
serverFlagSet.String("address", ":9000", "")
|
||||
ctx := cli.NewContext(app, serverFlagSet, serverFlagSet)
|
||||
ctx := cli.NewContext(app, serverFlagSet, nil)
|
||||
|
||||
root, err := newTestConfig(globalMinioDefaultRegion)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user