Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stream test. #49

Open
wants to merge 2 commits into
base: tf_scalatest_in_cn_uri_spec
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -3,10 +3,6 @@ version: '{branch}.{build}'
pull_requests:
do_not_increment_build_number: true

branches:
only:
- master

environment:
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
Original file line number Diff line number Diff line change
@@ -190,8 +190,8 @@ class PathSpecifierTest extends UnitTest {

it should "be able to generate an output stream for valid paths" in {
val path = makeTempFile("some_text_file.", ".txt")
val uri = s"file://${path.toAbsolutePath}"
new PathSpecifier(path.toString).getOutputStream.close()
new PathSpecifier(uri).getOutputStream.close()
val pathOnlyString = path.toUri().normalize().getPath()
new PathSpecifier(path.toString()).getOutputStream.close()
new PathSpecifier(s"file://$pathOnlyString" ).getOutputStream.close()
}
}