Skip to content

Commit

Permalink
Try again to fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
quelgar committed Jan 19, 2024
1 parent e5a4044 commit a1f0389
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install libuv
run: sudo apt-get update && sudo apt-get install libuv1-dev
run: sudo apt-get install libuv1-dev
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
Expand All @@ -31,6 +31,7 @@ jobs:
cache: 'sbt'
- name: Run tests
run: sbt test
working-directory: scala-uv
# Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository
- name: Upload dependency graph
uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91
6 changes: 5 additions & 1 deletion src/test/scala/scalauv/FileSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,14 @@ final class FileSpec {

val path = Path.of(filename)
val actualText = Files.readString(path)
Files.delete(path)
FileReq.use { deleteReq =>
uv_fs_unlink(loop, deleteReq, cFilename, null)
}
val exists = Files.exists(path)

assertEquals(text.length(), bytesWritten)
assertEquals(text, actualText)
assertFalse("created file should be deleted", exists)
}
}

Expand Down

0 comments on commit a1f0389

Please sign in to comment.