> +            if (nic == null || nic.metadata() == null)
> +               return false;
> +            
> +            return nic.metadata().state() == State.AVAILABLE;
> +         }
> +      }, nic);
> +   }
> +   
> +   private void assertNicRemoved(Nic nic) {
> +      assertPredicate(new Predicate<String>() {
> +         @Override
> +         public boolean apply(String args) {
> +            String[] params = args.split(",");
> +            return nicApi().get(params[0], params[1], params[2]) == null;
> +         }
> +      }, complexId(nic.dataCenterId(), testServer.id(), nic.id()));

Use the Nic for the predicate here too.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/249/files/9aae5625aabf5770d221f4af46ed8f1293c5c38b#r57133650

Reply via email to