about summary refs log tree commit homepage
path: root/t/t4003-rev-parser-error.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t4003-rev-parser-error.sh')
-rwxr-xr-xt/t4003-rev-parser-error.sh35
1 files changed, 2 insertions, 33 deletions
diff --git a/t/t4003-rev-parser-error.sh b/t/t4003-rev-parser-error.sh
index dff3e33..bcb129a 100755
--- a/t/t4003-rev-parser-error.sh
+++ b/t/t4003-rev-parser-error.sh
@@ -1,34 +1,3 @@
 #!/bin/sh
-. ./test-lib.sh
-require_rev
-
-eval $(unused_listen)
-rtmpfiles unicorn_config pid r_err r_out tmp fifo ok
-rm -f $fifo
-mkfifo $fifo
-
-cat > $unicorn_config <<EOF
-listen "$listen"
-pid "$pid"
-stderr_path "$r_err"
-stdout_path "$r_out"
-Rainbows! do
-  use :Rev
-end
-EOF
-
-rainbows -D t4000.ru -c $unicorn_config
-wait_for_pid $pid
-
-(
-        printf 'GET / HTTP/1/1\r\nHost: example.com\r\n\r\n'
-        cat $fifo > $tmp &
-        wait
-        echo ok > $ok
-) | socat - TCP:$listen > $fifo
-
-kill $(cat $pid)
-
-dbgcat tmp
-grep -F 'HTTP/1.1 400 Bad Request' $tmp
-! grep Error $r_err
+model=Rev
+. ./lib-parser-error.sh