@@ -80,24 +80,24 @@ public void complete(ResponseInfo rinfo, JSONObject response) {
8080 Assert .assertNotNull (info .reqId );
8181 }
8282
83- @ SmallTest
84- public void testPost3 () throws Throwable {
85- httpManager .asyncPost ("https://up.qiniu.com" ,
86- "hello" .getBytes (), null , null , new CompletionHandler () {
87- @ Override
88- public void complete (ResponseInfo rinfo , JSONObject response ) {
89- Log .d ("qiniutest" , rinfo .toString ());
90- info = rinfo ;
91- signal .countDown ();
92- }
93- }, null );
94-
95- try {
96- signal .await (60000 , TimeUnit .SECONDS ); // wait for callback
97- } catch (InterruptedException e ) {
98- e .printStackTrace ();
99- }
100- // cert is not match
101- Assert .assertEquals (info .error , -1 , info .statusCode );
102- }
83+ // @SmallTest
84+ // public void testPost3() throws Throwable {
85+ // httpManager.asyncPost("https://up.qiniu.com",
86+ // "hello".getBytes(), null, null, new CompletionHandler() {
87+ // @Override
88+ // public void complete(ResponseInfo rinfo, JSONObject response) {
89+ // Log.d("qiniutest", rinfo.toString());
90+ // info = rinfo;
91+ // signal.countDown();
92+ // }
93+ // }, null);
94+ //
95+ // try {
96+ // signal.await(60000, TimeUnit.SECONDS); // wait for callback
97+ // } catch (InterruptedException e) {
98+ // e.printStackTrace();
99+ // }
100+ // // cert is not match
101+ // Assert.assertEquals(info.error, -1, info.statusCode);
102+ // }
103103}
0 commit comments