File tree 1 file changed +7
-2
lines changed
src/test/java/com/spotify/docker/client
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 237
237
import java .net .Socket ;
238
238
import java .net .URI ;
239
239
import java .net .URISyntaxException ;
240
+ import java .net .URL ;
240
241
import java .net .URLEncoder ;
241
242
import java .nio .file .Path ;
242
243
import java .nio .file .Paths ;
@@ -1039,16 +1040,20 @@ public void testBuildInterruption() throws Exception {
1039
1040
sut .removeImage (imageName );
1040
1041
} catch (DockerException ignored ) {
1041
1042
}
1042
- final String dockerDirectory = Resources .getResource ("dockerDirectorySleeping" ).getPath ();
1043
+ final URL dockerDirectoryUrl = Resources .getResource ("dockerDirectorySleeping" );
1044
+ final Path dockerDirectory = Paths .get (dockerDirectoryUrl .toURI ());
1043
1045
1044
- sut .build (Paths . get ( dockerDirectory ) , imageName , message -> {
1046
+ sut .build (dockerDirectory , imageName , message -> {
1045
1047
if (!started .isDone ()) {
1046
1048
started .set (true );
1047
1049
}
1048
1050
});
1049
1051
} catch (InterruptedException e ) {
1050
1052
interrupted .set (true );
1051
1053
throw e ;
1054
+ } catch (Throwable t ) {
1055
+ started .setException (t );
1056
+ throw t ;
1052
1057
}
1053
1058
return null ;
1054
1059
});
You can’t perform that action at this time.
0 commit comments