mirror of
https://github.com/aykhans/sarin.git
synced 2026-02-28 06:49:13 +00:00
Add e2e tests
This commit is contained in:
13
e2e/validation_extra_test.go
Normal file
13
e2e/validation_extra_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package e2e
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestValidation_ConcurrencyExceedsMax(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
res := run("-U", "http://example.com", "-r", "1", "-q", "-c", "200000000")
|
||||
assertExitCode(t, res, 1)
|
||||
assertContains(t, res.Stderr, "concurrency must not exceed 100,000,000")
|
||||
}
|
||||
Reference in New Issue
Block a user