diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-04-16 21:03:28 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2013-04-16 21:03:28 -0700 |
commit | f9bf5945e5a04ffae223149d768beff2d82425b8 (patch) | |
tree | 278740384166785a5a0fd3967c2b471f85bc58fc | |
parent | 49b810e06f9b9c90c011b633e40acdaa2329d40e (diff) | |
download | AndroidAsync-f9bf5945e5a04ffae223149d768beff2d82425b8.tar.gz AndroidAsync-f9bf5945e5a04ffae223149d768beff2d82425b8.tar.bz2 AndroidAsync-f9bf5945e5a04ffae223149d768beff2d82425b8.zip |
remove defunct test, as the socket.io test tests the websocket transport as well.
The koush.clockworkmod.com service cant handle being both a socket.io server and a regular websocket server. the node
libs dont like that.
-rw-r--r-- | AndroidAsyncTest/src/com/koushikdutta/async/test/SocketIOTests.java | 3 | ||||
-rw-r--r-- | AndroidAsyncTest/src/com/koushikdutta/async/test/WebSocketTests.java | 20 |
2 files changed, 1 insertions, 22 deletions
diff --git a/AndroidAsyncTest/src/com/koushikdutta/async/test/SocketIOTests.java b/AndroidAsyncTest/src/com/koushikdutta/async/test/SocketIOTests.java index 22d4f17..a0c25a0 100644 --- a/AndroidAsyncTest/src/com/koushikdutta/async/test/SocketIOTests.java +++ b/AndroidAsyncTest/src/com/koushikdutta/async/test/SocketIOTests.java @@ -23,8 +23,7 @@ public class SocketIOTests extends TestCase { public void testEchoServer() throws Exception { final TriggerFuture trigger = new TriggerFuture(); - - SocketIOClient.connect(AsyncHttpClient.getDefaultInstance(), "http://192.168.1.2:3000", new SocketIOConnectCallback() { + SocketIOClient.connect(AsyncHttpClient.getDefaultInstance(), "http://koush.clockworkmod.com:8080", new SocketIOConnectCallback() { @Override public void onConnectCompleted(Exception ex, SocketIOClient client) { assertNull(ex); diff --git a/AndroidAsyncTest/src/com/koushikdutta/async/test/WebSocketTests.java b/AndroidAsyncTest/src/com/koushikdutta/async/test/WebSocketTests.java index 2df3f30..c4d93d1 100644 --- a/AndroidAsyncTest/src/com/koushikdutta/async/test/WebSocketTests.java +++ b/AndroidAsyncTest/src/com/koushikdutta/async/test/WebSocketTests.java @@ -64,26 +64,6 @@ public class WebSocketTests extends TestCase { assertTrue(semaphore.tryAcquire(TIMEOUT, TimeUnit.MILLISECONDS)); } - public void testEchoServer() throws Exception { - final Semaphore semaphore = new Semaphore(0); - - AsyncHttpClient.getDefaultInstance().websocket("http://koush.clockworkmod.com:8080", "echo-protocol", new WebSocketConnectCallback() { - @Override - public void onCompleted(Exception ex, WebSocket webSocket) { - webSocket.setStringCallback(new StringCallback() { - @Override - public void onStringAvailable(String s) { - assertEquals(s, "hello"); - semaphore.release(); - } - }); - webSocket.send("hello"); - } - }); - - assertTrue(semaphore.tryAcquire(TIMEOUT, TimeUnit.MILLISECONDS)); - } - @Override protected void tearDown() throws Exception { super.tearDown(); |