7e7b7d5fa2
fix: enable go-require rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-11-03 22:55:30 +01:00
5858a08f1b
fix: enable require-error rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-31 08:33:34 +01:00
499196dfb0
fix: enable error-is-as rule from testifylint
...
Signed-off-by: Thomas Gosteli <thomas.gosteli@protonmail.ch >
2024-10-16 12:55:25 +02:00
e06fb81713
fix: enable empty and len rules from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-10 11:07:21 +00:00
8a7596304a
testutils: return early instead of first breaking in LogObserver.ExpectFunc
...
Signed-off-by: redwrasse <mail@redwrasse.io >
2023-12-12 22:24:00 -08:00
50aa00b203
tests: make log monitor as common helper
...
It's followup of #15667 .
This patch is to use zaptest/observer as base to provide a similar
function to pkg/expect.Expect.
The test env
```bash
11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
mkdir /sys/fs/cgroup/etcd-followup-15667
echo 0-2 | tee /sys/fs/cgroup/etcd-followup-15667/cpuset.cpus # three cores
```
Before change:
* memory.peak: ~ 681 MiB
* Elapsed (wall clock) time (h:mm:ss or m:ss): 6:14.04
After change:
* memory.peak: ~ 671 MiB
* Elapsed (wall clock) time (h:mm:ss or m:ss): 6:13.07
Based on the test result, I think it's safe to be enabled by default.
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-04-18 09:00:24 +08:00
dc0273b049
test: refactor the struct to make it clearer
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-04 19:28:32 +08:00
07ca384753
tests: Move MustAbsPath function to testutils
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-10-17 13:37:14 +02:00
f6ed36372b
tests: Migrate watch test to common framework
...
Signed-off-by: nic-chen <chenjunxu6@gmail.com >
2022-08-22 21:55:57 +08:00
ee08770bfb
tests: Make common framework context aware
2022-05-16 14:35:44 +02:00
34cd8ae1a2
tests: Migrate compact tests to common framework
2022-03-10 17:01:47 +08:00
bd9f366f40
tests: Migrate TestKVRange integration test to TestKVGet
2022-03-01 10:43:31 +01:00
74d77dbaaa
tests: Migrate TestKVGet e2e test to common test framework
2022-03-01 10:41:57 +01:00
1c8adcd830
tests: Handle simple TLS configuration for cluster in common framework
2022-03-01 10:40:42 +01:00
f7ee30cc41
tests: Implement remaining GetOptions fields
2022-03-01 10:35:18 +01:00
744dd077cd
tests: Create common framework for e2e and integration tests and migrate TestKVPut test
2022-02-23 16:47:02 +01:00