Commit Graph

20 Commits

Author SHA1 Message Date
Arjan Singh Bal 0d6e39f679
transport: Send RST stream from the server when deadline expires (#8071) 2025-02-28 22:49:18 +05:30
Arvind Bright 8320224ff0
.*: revive from unused_parameters (#7577) 2024-08-30 10:41:30 -07:00
Paul Chesnais 9ab8b62505
Implement new Codec that uses `mem.BufferSlice` instead of `[]byte` (#7356) 2024-08-21 14:11:39 -07:00
Easwar Swaminathan c98235b960
grpclog: refactor to move implementation to grpclog/internal (#7465) 2024-08-14 16:54:38 -07:00
Doug Fawley 7d3996fd85
grpctest: use an interface instead of reflection (#6553) 2023-08-15 15:06:08 -07:00
Doug Fawley fbff2abb0f
*: update `interface{}` to `any` and `go.mod` version to `go 1.19` (#6544) 2023-08-14 09:04:46 -07:00
Doug Fawley 778860e606
testing: update Go to 1.19 (#5717) 2022-10-17 15:04:34 -07:00
Menghan Li 295d7e66be
internal: move leakcheck to t.Cleanup (#4989) 2021-11-17 12:06:04 -08:00
Menghan Li 567da6b863
tlogger: print log type (#4774)
Error logs cause tests to fail. This makes it easier (possible) to find
the error log
2021-09-16 13:38:35 -07:00
Doug Fawley 43b19ef0e4
grpctest: extend use of mutex to guard more things (#4710) 2021-08-26 13:29:59 -07:00
Easwar Swaminathan 866de13d56
meshca: CertificateProvider plugin implementation. (#3871) 2020-09-29 17:40:30 -07:00
Easwar Swaminathan 32e7099ccc
grpctest: Minor improvements to tlogger. (#3874)
* Simplify the logic to get the file and line number or call site
* Add a monotonic clock value as a suffix. This helps with debugging of test failures due to timing issues.
2020-09-14 17:05:51 -07:00
Garrett Gutierrez fff75ae40f
channelz: log on channelz trace events and trace on channelz relevant logs. (#3329)
channelz: log on channelz trace events and trace on channelz relevant logs. (#3329)
2020-02-14 10:11:26 -08:00
Garrett Gutierrez a431daa3bc
testutil: add a mutex to tLogger to protect errors map (#3373)
tlogger: Added mutex to protect errors map.
2020-02-12 10:21:58 -08:00
Garrett Gutierrez 132187f04c
Modified tests to use tlogger. (#3343)
* Modified tests to use tlogger.

* Fail on errors, with error expectations.

* Added expects and MixedCapsed grpclb_config tests

* Moved tlogger to grpctest, moved leakcheck tester to grpctest.go

* Added ExpectErrorN()

* Removed redundant leak checks

* Fixed new test

* Made tlogger globals into tlogger methods

* ErrorsLeft -> EndTest

* Removed some redundant lines

* Fixed error in test and empty map in EndTest
2020-02-06 13:03:20 -08:00
Garrett Gutierrez e8a4440d49 grpctest: implement grpclogger using testing.T and inject in tests (#3260) 2020-01-13 14:02:31 -08:00
Doug Fawley f647b6facb
grpctest: defer Teardown to guarantee it is run even after t.Fatal (#2562) 2019-01-14 15:22:43 -08:00
Doug Fawley bd0b3b2aa2
grpctest: fix comments to be more readable (#2555) 2019-01-09 15:32:22 -08:00
Doug Fawley b6f0a0f3fc
grpctest: add example to show how it is used (#2552) 2019-01-09 12:52:40 -08:00
Doug Fawley 0a391ff2b7
grpctest: add new package to manage tests and support per-test setup/teardown (#2523)
- Migrate `grpc` & `grpc/test` packages to use `Teardown` support to guarantee `leakcheck` is used
2019-01-07 14:24:56 -08:00