Skip to content

Commit

Permalink
Merge #2406 into 1.1.0-M5
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Jul 28, 2022
2 parents b22eee6 + f632dd0 commit f5f1645
Showing 1 changed file with 2 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2021 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2017-2022 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -139,9 +139,7 @@ void testFromPath() throws Exception {

private static File createTemporaryDirectory() {
try {
final File tempDir = File.createTempFile("ByteBufFluxTest", "", null);
assertThat(tempDir.delete()).isTrue();
assertThat(tempDir.mkdir()).isTrue();
final File tempDir = Files.createTempDirectory("ByteBufFluxTest").toFile();
return tempDir;
}
catch (Exception e) {
Expand Down

0 comments on commit f5f1645

Please sign in to comment.