> +      key = UUID.randomUUID().toString().replaceAll("-", "");
> +      value = UUID.randomUUID().toString().replaceAll("-", "");
> +   }
> +
> +   @Test
> +   public void testCreateKeyWithTTL() {
> +      String localKey = UUID.randomUUID().toString().replaceAll("-", "");
> +      String localValue = UUID.randomUUID().toString().replaceAll("-", "");
> +      Key createdKey = api().createKey(localKey, localValue, 1);
> +      assertNotNull(createdKey);
> +      assertNotNull(createdKey.node().expiration());
> +
> +      try {
> +         Thread.sleep(3000);
> +      } catch (InterruptedException e) {
> +         e.printStackTrace();

Remove this. Let the test propagate the exception and fail.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/234/files#r52988554

Reply via email to