Commit Graph

9 Commits

Author SHA1 Message Date
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
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
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