Skip to content

Commit

Permalink
Merge pull request #8076 from chrisvest/3.1-fix-swapper-windows
Browse files Browse the repository at this point in the history
Fix PageSwapperTest failure on Windows
  • Loading branch information
chrisvest committed Oct 4, 2016
2 parents 31304b3 + d1c11be commit c0cab44
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1384,8 +1384,8 @@ public void streamFilesRecursiveMustThrowWhenTargetFileOfRenameAlreadyExists() t
File base = baseDirectory();
File a = new File( base, "a" );
File b = new File( base, "b" );
createSwapperAndFile( factory, a );
createSwapperAndFile( factory, b );
createSwapperAndFile( factory, a ).close();
createSwapperAndFile( factory, b ).close();
FileHandle handle = factory.streamFilesRecursive( a ).findAny().get();
expectedException.expect( FileAlreadyExistsException.class );
handle.rename( b );
Expand All @@ -1398,8 +1398,8 @@ public void streamFilesRecursiveMustNotThrowWhenTargetFileOfRenameAlreadyExistsA
File base = baseDirectory();
File a = new File( base, "a" );
File b = new File( base, "b" );
createSwapperAndFile( factory, a );
createSwapperAndFile( factory, b );
createSwapperAndFile( factory, a ).close();
createSwapperAndFile( factory, b ).close();
FileHandle handle = factory.streamFilesRecursive( a ).findAny().get();
handle.rename( b, REPLACE_EXISTING );
}
Expand Down

0 comments on commit c0cab44

Please sign in to comment.