feat(go): add load simulator hold mode
This commit is contained in:
@@ -18,6 +18,7 @@ func TestConfigFromFlagsParsesCapacityKnobs(t *testing.T) {
|
||||
"-send-interval", "5s",
|
||||
"-duration", "30m",
|
||||
"-template", "0200",
|
||||
"-send=false",
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatalf("parse flags: %v", err)
|
||||
@@ -49,6 +50,9 @@ func TestConfigFromFlagsParsesCapacityKnobs(t *testing.T) {
|
||||
if got.Template != "0200" {
|
||||
t.Fatalf("Template = %q", got.Template)
|
||||
}
|
||||
if got.SendFrames {
|
||||
t.Fatal("SendFrames = true, want false")
|
||||
}
|
||||
}
|
||||
|
||||
func TestConfigFromFlagsRejectsUnsafeValues(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user