THRIFT-2919 Haxe test server timeout too large
Client: Haxe
Patch: Jens Geyer

This closes #340

- reduced timeout and made sure the test script waits appropriately
- added test to make sure Haxe >= 3.1.3 is used
diff --git a/test/haxe/Makefile.am b/test/haxe/Makefile.am
index 3d4894a..9b7548b 100644
--- a/test/haxe/Makefile.am
+++ b/test/haxe/Makefile.am
@@ -46,9 +46,10 @@
 	$(RM) -r gen-haxe bin
 
 check: $(BIN_CPP)
-	timeout 120 $(BIN_CPP) server &
+	timeout 10 $(BIN_CPP) server &
 	sleep 1
 	$(BIN_CPP) client
+	sleep 10
 
 EXTRA_DIST = \
              src \