> + Properties overrides = new Properties(); > + // prevent expect-100 bug > http://code.google.com/p/mockwebserver/issues/detail?id=6 > + overrides.setProperty(PROPERTY_SO_TIMEOUT, "0"); > + overrides.setProperty(PROPERTY_MAX_RETRIES, "1"); > + return ContextBuilder.newBuilder("glacier") > + .credentials("accessKey", "secretKey") > + .endpoint(server.toString()) > + .modules(modules) > + .overrides(overrides) > + .buildApi(GlacierClient.class); > + } > + > + public void experiments() throws IOException, InterruptedException { > + MockWebServer server = new MockWebServer(); > + server.enqueue(new MockResponse().addHeader(ETAG, "Testing")); > + // hangs on Java 7 without this additional response ?!?
Does it only hang in Java 7? Usually when mockt ests hang is because a request is made and the code is waiting for the response. If mockwevserver does not have more responses configured, it just waits until the connection times out. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-aws/pull/3/files#r12469464
