Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
redox committed May 13, 2014
1 parent 0d62e99 commit f680ce2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/com/algolia/search/saas/SimpleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ public void test27_headerDisableRateLimit() throws AlgoliaException, JSONExcepti
@Test
public void test29_user_keyLimit() throws AlgoliaException, JSONException {
JSONObject newKey = client.addUserKey(Arrays.asList("search"), 0, 2, 2);
try { Thread.sleep(2000); } catch (Exception e) {}
assertTrue(!newKey.getString("key").equals(""));
JSONObject res = client.listUserKeys();
assertTrue(isPresent(res.getJSONArray("keys"), newKey.getString("key"), "value"));
Expand All @@ -493,6 +494,7 @@ public void test29_user_keyLimit() throws AlgoliaException, JSONException {
@Test
public void test30_user_key_indexLimit() throws AlgoliaException, JSONException {
JSONObject newKey = index.addUserKey(Arrays.asList("search"), 0, 2, 2);
try { Thread.sleep(2000); } catch (Exception e) {}
assertTrue(!newKey.getString("key").equals(""));
JSONObject res = index.listUserKeys();
assertTrue(isPresent(res.getJSONArray("keys"), newKey.getString("key"), "value"));
Expand Down

0 comments on commit f680ce2

Please sign in to comment.