swarm-smoke: fix check max prox hosts for pull/push sync modes (#1578)
This commit is contained in:
committed by
GitHub
parent
ad77f43b9d
commit
48857ae88e
@@ -37,22 +37,23 @@ var (
|
||||
)
|
||||
|
||||
var (
|
||||
allhosts string
|
||||
hosts []string
|
||||
filesize int
|
||||
syncDelay bool
|
||||
inputSeed int
|
||||
httpPort int
|
||||
wsPort int
|
||||
verbosity int
|
||||
timeout int
|
||||
single bool
|
||||
onlyUpload bool
|
||||
debug bool
|
||||
allhosts string
|
||||
hosts []string
|
||||
filesize int
|
||||
syncDelay bool
|
||||
pushsyncDelay bool
|
||||
syncMode string
|
||||
inputSeed int
|
||||
httpPort int
|
||||
wsPort int
|
||||
verbosity int
|
||||
timeout int
|
||||
single bool
|
||||
onlyUpload bool
|
||||
debug bool
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
app := cli.NewApp()
|
||||
app.Name = "smoke-test"
|
||||
app.Usage = ""
|
||||
@@ -88,6 +89,17 @@ func main() {
|
||||
Usage: "file size for generated random file in KB",
|
||||
Destination: &filesize,
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "sync-mode",
|
||||
Value: "pullsync",
|
||||
Usage: "sync mode - pushsync or pullsync or both",
|
||||
Destination: &syncMode,
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "pushsync-delay",
|
||||
Usage: "wait for content to be push synced",
|
||||
Destination: &pushsyncDelay,
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "sync-delay",
|
||||
Usage: "wait for content to be synced",
|
||||
|
Reference in New Issue
Block a user