THRIFT-1594 Java test clients should have a return codes that reflect whether it succeeds or not.
Patch: Kamil Salas and Roger Meier
diff --git a/lib/js/test/test.js b/lib/js/test/test.js
index c30287f..99fcc41 100755
--- a/lib/js/test/test.js
+++ b/lib/js/test/test.js
@@ -1,4 +1,4 @@
-/*
+/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -205,13 +205,12 @@
}
});
- test("unexpected Application Exception", function() {
+ test("TException", function() {
expect(1);
try{
- client.testException("ApplicationException");
+ client.testException("TException");
} catch(e) {
- ok(true); //@HACK: ignore faulty java server response for exceptions
- //equal(e.message, "ApplicationException");
+ ok(true);
}
});