We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d801ba9 commit ffdd494Copy full SHA for ffdd494
result/tests/tests.sh
@@ -1,9 +1,8 @@
1
#!/bin/sh
2
while ! timeout 1 bash -c "echo > /dev/tcp/vote/80"; do sleep 1; done
3
-curl -sS -X POST --data "vote=a" http://vote > /dev/null
4
curl -sS -X POST --data "vote=b" http://vote > /dev/null
5
sleep 10
6
-if phantomjs render.js http://result | grep -q '2 votes'; then
+if phantomjs render.js http://result | grep -q '1 vote'; then
7
echo -e "\e[42m------------"
8
echo -e "\e[92mTests passed"
9
0 commit comments