Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Sep 11, 2024
1 parent 11247b7 commit 4b7e98e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- run: ./mill -i -k -j4 'integration[${{ matrix.scala-version }}].__.test'
- run: ./mill -i -k 'integration[${{ matrix.scala-version }}].__.test'

site:
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions amm/repl/src/test/scala/ammonite/session/ProjectTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,11 @@ object ProjectTests extends TestSuite {
}

test("finagle") {
val s = new java.net.ServerSocket(0);
val port = s.getLocalPort
s.close()
// Prevent regressions when wildcard-importing things called `macro` or `_`
check.session("""
check.session(s"""
@ import $ivy.`com.twitter::finagle-http:21.4.0 compat`

@ import com.twitter.finagle._, com.twitter.util._
Expand All @@ -203,9 +206,9 @@ object ProjectTests extends TestSuite {
@ }
@ }

@ val server = Http.serve(":8080", service)
@ val server = Http.serve(":$port", service)

@ val client: Service[http.Request, http.Response] = Http.client.newService(":8080")
@ val client: Service[http.Request, http.Response] = Http.client.newService(":$port")

@ val request = http.Request(http.Method.Get, "/")

Expand Down

0 comments on commit 4b7e98e

Please sign in to comment.