Skip to content

Commit b32f7b4

Browse files
authored
Run tests in CI again (#91)
* Run tests in CI again * httpbin.org/delay doesn't delay the connection time Modifying the test to reduce the timeout to make it timeout on CI which has a very fast connection * Avoid running CI twice in pull requests
1 parent f74e3a0 commit b32f7b4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/actions.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: ci
22

33
on:
44
push:
5+
branches:
6+
- master
7+
tags:
8+
- '*'
59
pull_request:
610
branches:
711
- master
@@ -15,7 +19,7 @@ jobs:
1519
with:
1620
java-version: 8
1721
- name: Run tests
18-
run: ./mill -i __.publishArtifacts __.test
22+
run: ./mill -i all __.publishArtifacts __.test
1923
check-binary-compatibility:
2024
runs-on: ubuntu-latest
2125
steps:

requests/test/src/requests/RequestTests.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,8 @@ object RequestTests extends TestSuite{
160160
}
161161
test("connect"){
162162
intercept[TimeoutException] {
163-
requests.get("https://httpbin.org/delay/1", connectTimeout = 10)
163+
requests.get("https://httpbin.org/delay/1", connectTimeout = 1)
164164
}
165-
requests.get("https://httpbin.org/delay/1", connectTimeout = 1500)
166-
requests.get("https://httpbin.org/delay/3", connectTimeout = 1500)
167165
}
168166
}
169167
test("failures"){

0 commit comments

Comments
 (0)