Skip to content

Commit

Permalink
loadtester: add -wait-for-target=30s
Browse files Browse the repository at this point in the history
  • Loading branch information
iameli authored and darkdarkdragon committed May 27, 2021
1 parent e648c92 commit ff4344e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/loadtester/loadtester.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func main() {
// startDelay := fs.Duration("start-delay", 0*time.Second, "time delay before start")
streamDuration := fs.Duration("stream-dur", 0, "How long to stream each stream (0 to stream whole file)")
testDuration := fs.Duration("test-dur", 0, "How long to run overall test")
waitForTargetDuration := fs.Duration("wait-for-target", 30*time.Second, "How long to wait for a new stream to appear before giving up")

// profiles := fs.Uint("profiles", 2, "number of transcoded profiles should be in output")
sim := fs.Uint("sim", 1, "Number of simulteneous streams to stream")
Expand Down Expand Up @@ -243,7 +244,7 @@ func main() {
// exit(0, fn, fa, nil)
}(fileName, *fileArg)

err = loadTester.Start(fileName, 30*time.Second, *streamDuration, *testDuration, int(*sim))
err = loadTester.Start(fileName, *waitForTargetDuration, *streamDuration, *testDuration, int(*sim))
if err != nil {
glog.Errorf("Error starting test: %v", err)
exit(255, fileName, *fileArg, err)
Expand Down

0 comments on commit ff4344e

Please sign in to comment.