Code imported from @CesarGallego private repo
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package client
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestInvalidURL(t *testing.T) {
|
||||
err := AddRoute("http://localhost;8080", "/hi", "GET", "bash -c", "echo 'Hi' | kapow set /response/body")
|
||||
if err == nil {
|
||||
t.Error("expect to fail due invalid url")
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user