Commit Graph

69 Commits

Author SHA1 Message Date
Aleksandr Razumov
f5f4fe320a all: fix golangci-lint warnings 2020-11-01 18:48:51 +03:00
Christian Muehlhaeuser
68f3da9cd0 Unlambda test functions
No need to wrap these functions, they already have a matching signature.
2019-07-22 08:59:31 +02:00
Aleksandr Razumov
3c40912f48 client: add WithNoConnClose option 2019-04-27 21:48:15 +03:00
Aleksandr Razumov
2e1364c36a test: don't dial to zero port 2018-09-06 11:04:37 +03:00
Aleksandr Razumov
382848e43d client: update TestCallbackWaitHandler_HandleEvent for coverage 2018-08-18 02:30:34 +03:00
Aleksandr Razumov
45872027dd client: fix transaction timeout calculation 2018-08-18 02:26:52 +03:00
Aleksandr Razumov
e27a816226 client: guard s.callback with s.cond.L in callbackWaitHandler 2018-08-18 00:21:54 +03:00
Aleksandr Razumov
85f8e8270d client: add TestClient_HandleProcessError 2018-08-16 20:33:54 +03:00
Aleksandr Razumov
b5f45e6ee8 client: increase testing timeouts
Seems like windows builder has low timer resolution
2018-08-16 20:16:23 +03:00
Aleksandr Razumov
2e153977ca client: remove mistaken auto-import 2018-08-16 20:13:03 +03:00
Aleksandr Razumov
ba5886b6a6 client: cover WithNoRetransmit better 2018-08-16 20:10:51 +03:00
Aleksandr Razumov
1bd3f8cab9 client: also test StopErr in TestClientRTOWriteErr 2018-08-16 20:09:47 +03:00
Aleksandr Razumov
524765a323 client: add TestClientRTOAgentErr 2018-08-16 20:02:27 +03:00
Aleksandr Razumov
25d8a78934 client: add TestClientRTOWriteErr 2018-08-16 19:57:45 +03:00
Aleksandr Razumov
c55347ebb4 client: add TestClientRTOStartErr 2018-08-16 19:55:41 +03:00
Aleksandr Razumov
97de852fc6 client: change order of options in TestWithNoRetransmit for better cover 2018-08-13 19:13:39 +03:00
Aleksandr Razumov
fd3ed9f3d6 client: add "No retransmit" mode.
Fixes #40
2018-08-13 18:51:14 +03:00
Aleksandr Razumov
d1aae67291 client: add TestClientClosedStart 2018-08-13 18:14:25 +03:00
Aleksandr Razumov
6340d47a3b client: add TestClientDefaultHandler 2018-08-13 18:08:42 +03:00
Aleksandr Razumov
3f68426604 client: use ClientOption variadic instead of ClientOptions struct 2018-08-13 14:27:27 +03:00
Aleksandr Razumov
6743b3bf2f client: add TestClient_Close 2018-08-13 11:20:45 +03:00
Aleksandr Razumov
0fe96b76a1 client: add TestNewClient 2018-08-13 11:17:56 +03:00
Aleksandr Razumov
29b07afea1 {agent,client: add NoopHandler 2018-08-11 20:22:21 +03:00
Aleksandr Razumov
4b75dfd8f1 client: make concurrent reads in TestClient_DoConcurrent 2018-08-11 20:13:44 +03:00
Aleksandr Razumov
3a8c498f4a client: add concurrency tests 2018-08-11 20:06:46 +03:00
Aleksandr Razumov
66fcc03af3 client: don't use concurrency in agent.start 2018-08-11 17:15:25 +03:00
Aleksandr Razumov
ee6a265c7b client: add TestClientRetransmission 2018-08-11 17:08:33 +03:00
Aleksandr Razumov
5005255e13 client: add TestClient_Start 2018-08-09 14:12:45 +03:00
Aleksandr Razumov
710e8d6cd4 client: run Do bench concurrently 2018-08-09 03:11:41 +03:00
Aleksandr Razumov
e2fc3e0669 {agent,client}: use single handler in Agent 2018-08-09 02:56:14 +03:00
Aleksandr Razumov
dbf17d2d66 {agent,client}: implement RTO in Client 2018-08-09 01:29:18 +03:00
Aleksandr Razumov
9c4514b361 client: add TestCallbackWaitHandler
Coverage is kinda flaky without that explicit test
2018-08-08 23:45:39 +03:00
Aleksandr Razumov
d29ebc8197 {agent,client}: use function-based handler
This breaks backward compatibility, however, Agent and Client
are unstable and can change now.
2018-08-08 23:30:57 +03:00
Aleksandr Razumov
a6a172c214 {agent,client}: fix data races 2018-07-22 07:53:59 +03:00
Aleksandr Razumov
4eadb3089b client: fix linters 2018-04-29 14:36:13 +03:00
Aleksandr Razumov
c8306cf2af client: improve finalizer test 2018-04-29 14:28:29 +03:00
Aleksandr Razumov
f539368a80 client: add initialization checks 2018-04-29 14:20:09 +03:00
Aleksandr Razumov
bb835f8153 client: add finalizer (fix #36) 2018-04-29 14:11:43 +03:00
Aleksandr Razumov
45f4b51600 client: add TestClientGC 2017-12-17 03:01:53 +03:00
Aleksandr Razumov
3612554cd8 client: add TestClientCloseErr 2017-12-17 02:56:31 +03:00
Aleksandr Razumov
2ff3e90c82 client: add TestDialError 2017-12-15 21:38:02 +03:00
Aleksandr Razumov
9ded356f63 client: add test for Dial 2017-12-15 21:36:43 +03:00
Aleksandr Razumov
2f1a10917a client: improve code coverage, add error return value for NewClient 2017-12-15 21:32:54 +03:00
Aleksandr Razumov
c563d0b3ba client: test indication and cleanup 2017-12-15 20:15:29 +03:00
Aleksandr Razumov
cbb64515aa {client,agent}: don't alloc on client.Do 2017-12-15 15:07:25 +03:00
Aleksandr Razumov
0c5e708c79 client: optimize Do 2017-12-15 09:00:07 +03:00
Aleksandr Razumov
43243eedc0 client: gofmt -s tests
Signed-off-by: Aleksandr Razumov <ar@cydev.ru>
2017-10-19 13:20:55 +03:00
Aleksandr Razumov
fcee96354c client: pretty-print for StopErr.Error() 2017-10-17 03:11:11 +02:00
Aleksandr Razumov
b720eed08b client: pretty-print for CloseErr.Error() 2017-10-17 02:56:46 +02:00
Aleksandr Razumov
f3ca5dba0f client: improve test coverage (fix #33) 2017-09-06 12:02:10 +02:00