Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondav committed Nov 5, 2014
1 parent 05ff43c commit 6f594cd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

package org.apache.spark.network.shuffle;

import java.io.IOException;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
Expand Down Expand Up @@ -54,7 +56,7 @@ public void afterEach() {
}

@Test
public void testValid() {
public void testValid() throws IOException {
validate("my-app-id", "secret");
}

Expand All @@ -77,7 +79,7 @@ public void testBadSecret() {
}

/** Creates an ExternalShuffleClient and attempts to register with the server. */
private void validate(String appId, String secretKey) {
private void validate(String appId, String secretKey) throws IOException {
ExternalShuffleClient client =
new ExternalShuffleClient(conf, new TestSecretKeyHolder(appId, secretKey), true);
client.init(appId);
Expand Down

0 comments on commit 6f594cd

Please sign in to comment.