Skip to content

Commit

Permalink
added try catch for Thread.sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieyu1996 committed Nov 16, 2022
1 parent 774cee9 commit c574f72
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
import java.io.PrintStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import io.grpc.StatusRuntimeException;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import io.grpc.StatusRuntimeException;

public class SearchAssetsIT {

Expand Down Expand Up @@ -80,7 +80,11 @@ public void testSearchAssets() throws IOException {
break;
} catch (StatusRuntimeException e) {
// sleep for 1 minute
Thread.sleep(60000);
try {
Thread.sleep(60000);
} catch (InterruptedException ie) {
// stop sleep earlier
}
}
counter++;
}
Expand Down

0 comments on commit c574f72

Please sign in to comment.