File tree Expand file tree Collapse file tree 4 files changed +31
-12
lines changed Expand file tree Collapse file tree 4 files changed +31
-12
lines changed Original file line number Diff line number Diff line change 13
13
fail-fast : false
14
14
matrix :
15
15
version :
16
- - ' 1.3 '
16
+ - ' 1.5 '
17
17
- ' 1' # automatically expands to the latest stable 1.x release of Julia
18
18
os :
19
19
- ubuntu-latest
Original file line number Diff line number Diff line change 1
1
name = " gRPCClient"
2
2
uuid = " aaca4a50-36af-4a1d-b878-4c443f2061ad"
3
3
authors = [
" Tanmay K.M. <[email protected] >" ]
4
- version = " 0.1.2 "
4
+ version = " 0.1.3 "
5
5
6
6
[deps ]
7
7
Downloads = " f43a241f-c20a-4ad4-852c-f6b1247861c6"
@@ -12,7 +12,7 @@ ProtoBuf = "3349acd9-ac6a-5e09-bcdb-63829b23a429"
12
12
Downloads = " 1.3"
13
13
LibCURL = " 0.6"
14
14
ProtoBuf = " 0.11"
15
- julia = " 1.3 "
15
+ julia = " 1.5 "
16
16
17
17
[extras ]
18
18
Random = " 9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ server_endpoint = isempty(ARGS) ? "http://localhost:10000/" : ARGS[1]
80
80
else
81
81
@info (" skipping code generation on Windows to avoid needing batch file execution permissions" )
82
82
end
83
-
83
+
84
84
test_timeout_header_values ()
85
85
86
86
include (" test_routeclient.jl" )
Original file line number Diff line number Diff line change @@ -209,16 +209,35 @@ end
209
209
210
210
function test_threaded_clients (server_endpoint:: String )
211
211
@info (" testing threaded blocking client" )
212
- Threads. @threads for idx in 1 : 10
213
- client = RouteGuideBlockingClient (server_endpoint; verbose= false )
214
- test_blocking_client (client)
215
- close (client. channel)
212
+
213
+ testsetslck = ReentrantLock ()
214
+ topts = Test. get_testset ()
215
+ function recordts (ts)
216
+ lock (testsetslck) do
217
+ for result in ts. results
218
+ Test. record (topts, result)
219
+ end
220
+ end
221
+ end
222
+
223
+ Test. TESTSET_PRINT_ENABLE[] = false
224
+ Threads. @threads for _idx in 1 : 10
225
+ ts = @testset " threaded blocking client" begin
226
+ client = RouteGuideBlockingClient (server_endpoint; verbose= false )
227
+ test_blocking_client (client)
228
+ close (client. channel)
229
+ end
230
+ recordts (ts)
216
231
end
217
232
218
233
@info (" testing threaded async client" )
219
- Threads. @threads for idx in 1 : 10
220
- client = RouteGuideClient (server_endpoint; verbose= false )
221
- test_async_client (client)
222
- close (client. channel)
234
+ Threads. @threads for _idx in 1 : 10
235
+ ts = @testset " threaded async client" begin
236
+ client = RouteGuideClient (server_endpoint; verbose= false )
237
+ test_async_client (client)
238
+ close (client. channel)
239
+ end
240
+ recordts (ts)
223
241
end
242
+ Test. TESTSET_PRINT_ENABLE[] = true
224
243
end
You can’t perform that action at this time.
0 commit comments