Skip to content

Commit

Permalink
* [android] fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sospartan committed May 27, 2016
1 parent 26999e7 commit 40b10de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ public void testFetchRequestHttpbinCallback() throws Exception{
JSCallback finish = mock(JSCallback.class);
System.out.print("request start "+System.currentTimeMillis());
streamModule.fetch("{method: 'POST',url: 'http://httpbin.org/post',type:'json'}",finish,progress);
verify(progress,timeout(10*1000)).invokeAndKeepAlive(anyMapOf(String.class, Object.class));
verify(finish,timeout(10*1000)).invoke(anyMapOf(String.class, Object.class));
verify(progress,timeout(10*1000).atLeastOnce()).invokeAndKeepAlive(anyMapOf(String.class, Object.class));
verify(finish,timeout(10*1000).times(1)).invoke(anyMapOf(String.class, Object.class));
System.out.print("\nrequest finish"+System.currentTimeMillis());
}

Expand Down

0 comments on commit 40b10de

Please sign in to comment.