Skip to content

Commit

Permalink
Modify test contact thread sleep time
Browse files Browse the repository at this point in the history
  • Loading branch information
FuDongHai committed Jan 26, 2024
1 parent a764d18 commit b611a04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ jobs:
java-version: 1.8
- name: Maven
run: mvn --batch-mode -Pci clean package
- name: Maven Test
run: mvn test

1 change: 1 addition & 0 deletions src/main/java/com/easemob/im/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public ApiClient(String basePath, Realm realm, String appKey, String clientId, S
* Basic constructor with custom OkHttpClient
*
* @param client a {@link okhttp3.OkHttpClient} object
* @throws ApiException if fails to initialize {@link ApiClient}
*/
public ApiClient(OkHttpClient client) throws ApiException {
init();
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/easemob/im/api/ContactApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void getContactListTest() throws ApiException, InterruptedException {
assertNotNull(addContactResult.getEntities().get(0));
assertEquals(username2, addContactResult.getEntities().get(0).getUsername());

Thread.sleep(2000);
Thread.sleep(5000);

EMGetContactListResult getContactListResult = assertDoesNotThrow(() -> api.getContactList(username1, 1, null, true));
assertNotNull(getContactListResult);
Expand Down Expand Up @@ -199,7 +199,7 @@ public void setContactNoteTest() throws ApiException, InterruptedException {
assertNotNull(addContactResult.getEntities().get(0));
assertEquals(username2, addContactResult.getEntities().get(0).getUsername());

Thread.sleep(2000);
Thread.sleep(5000);

EMSetContactNote contactNote = new EMSetContactNote();
contactNote.setRemark("tom");
Expand Down

0 comments on commit b611a04

Please sign in to comment.