Marek Siarkowicz
f611da66d8
Merge pull request #17675 from callthingsoff/simplify_testutil_assert
...
client/pkg/testutil: eliminate copyToInterface function
2024-04-02 09:44:01 +02:00
Jes Cok
06b50370fa
client/pkg/testutil: add shouldSkip func for interestingGoroutines
...
interestingGoroutines uses so many strings.Contains checks to determine
whether to continue, I think it can be avoided.
This patch introduces shouldSkip func to do the checks in a loop
to make the logic clearer.
Signed-off-by: Jes Cok <xigua67damn@gmail.com>
2024-03-31 23:37:30 +08:00
Jes Cok
229ceb3a73
client/pkg/testutil: eliminate copyToInterface function
...
AssertTrue and AssertFalse use copyToInterface to copy msg. This is
unnecessary, cause we know the msgAndArgs param of assert.Equal is
variadic:
func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool
This patch removes copyToInterface function, and use msg directly.
Signed-off-by: Jes Cok <xigua67damn@gmail.com>
2024-03-30 23:59:07 +08:00
Jes Cok
f3daf5e041
all: make regexp.Regexp variables global when not using configuration methods
...
As the doc of regexp.Regex is saying:
"A Regexp is safe for concurrent use by multiple goroutines, except for configuration
methods, such as Regexp.Longest."
Signed-off-by: Jes Cok <xigua67damn@gmail.com>
2024-03-26 18:49:50 +08:00
James Blair
7b7e2e29da
dependency: bump go.uber.org/zap from 1.26.0 to 1.27.0.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2024-03-22 01:41:57 +13:00
Benjamin Wang
d639abe1aa
Merge pull request #17582 from ivanvc/address-client-var-naming-lint-rule
...
client: address golangci var-naming issues
2024-03-15 09:03:15 +00:00
Ivan Valdes
578b784dcd
client: address golangci var-naming issues
...
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-14 20:47:32 -07:00
Ivan Valdes
0024569c7c
dependency: bump github.com/stretchr/testify from 1.8.4 to 1.9.0
...
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-11 11:50:27 -07:00
Ivan Valdes
9f5671d113
dependency: bump golang.org/x/sys from 0.17.0 to 0.18.0
...
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-03-11 11:48:03 -07:00
Allen Ray
bb4b70bbb2
Migrate to go1.22
...
Signed-off-by: Allen Ray <alray@redhat.com>
2024-03-06 17:15:36 -05:00
Benjamin Wang
5c1b43c079
Dependency: bump golang.org/x/sys from 0.16.0 to 0.17.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-02-13 09:32:55 +00:00
Benjamin Wang
cf7043391c
Merge pull request #15812 from tangruize/main
...
etcd: ignore SetKeepAlivePeriod errors on OpenBSD
2024-02-06 13:05:56 +00:00
Sharath Sivakumar
98646057d6
dependency: bump golang.org/x/sys from 0.15.0 to 0.16.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2024-01-09 16:04:19 +01:00
Marek Siarkowicz
a2eb17c809
Merge pull request #17199 from serathius/dont-flock
...
Don't flock snapshot files
2024-01-08 15:03:29 +01:00
Marek Siarkowicz
7f8346b3f2
Don't flock snapshot files
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-01-04 14:53:44 +01:00
Ivan Valdes
e9434c9455
client: implement TLS CRL tests
...
Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-12-23 09:23:17 -08:00
Benjamin Wang
16d1ef949c
replace the deprecated x509.ParseCRL with x509.ParseRevocationList
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-12-12 14:47:49 -08:00
vivekpatani
2afd2ddee5
*: bump golang.org/x/sys to 0.15.0
...
- https://github.com/etcd-io/etcd/pull/17029
Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
2023-11-30 10:13:29 -08:00
Benjamin Wang
f64689f4e2
Update copyright header in sockopt_wasm.go
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-11-21 16:27:22 +00:00
Icemap
c48738e33f
fix: add js platform
...
Signed-off-by: Icemap <qizhi.wang@pingcap.com>
Signed-off-by: Icemap <qizhi.wang@pingcap.com>
2023-11-11 10:18:34 +08:00
Icemap
1cecf35b24
feat: add wasm for client transport
...
Signed-off-by: Icemap <qizhi.wang@pingcap.com>
2023-11-11 10:18:34 +08:00
vivekpatani
ed30fb1226
*: bump golang.org/x/sys from 0.13.0 to 0.14.0
...
- https://github.com/etcd-io/etcd/pull/16875
Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
2023-11-09 11:02:36 -06:00
Wei Fu
aea1cd0077
feat: enable unparam lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-10-17 21:24:13 +08:00
Sharath Sivakumar
1b1c42a7aa
dependency: bump golang.org/x/net from 0.15.0 to 0.16.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2023-10-10 11:49:35 +02:00
Wei Fu
4704a5af3a
*: fix unused issue
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-09-25 19:37:18 +08:00
Benjamin Wang
e1ebc260a9
Merge pull request #16628 from fuweid/fix-goimports
...
*: fix goimports linter
2023-09-22 10:26:14 +01:00
sharathsivakumar
eef790399e
dependency: bump go.uber.org/zap from 1.25.0 to 1.26.0
...
Signed-off-by: sharathsivakumar <mailssr9@gmail.com>
2023-09-21 19:41:16 +02:00
Wei Fu
aa97484166
*: enable goimports in verify-lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-09-21 21:14:09 +08:00
Benjamin Wang
700411d838
Merge pull request #16601 from fuweid/fix-nakedret-lint
...
*: fix nakedret lint
2023-09-18 10:00:25 +01:00
Wei Fu
e72c2c40d4
*: fix nakedret lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-09-17 23:52:41 +08:00
chenyahui
c0aa3b613b
Use any instead of interface{}
...
Signed-off-by: chenyahui <cyhone@qq.com>
2023-09-17 17:41:58 +08:00
Allen Ray
cc130fd2d4
Update to go1.21
...
Signed-off-by: Allen Ray <alray@redhat.com>
2023-09-13 10:10:02 -04:00
sharathsivakumar
e47d10fca7
dependency: bump golang.org/x/sys from 0.11.0 to 0.12.0
...
Signed-off-by: sharathsivakumar <mailssr9@gmail.com>
2023-09-09 16:19:54 +02:00
James Blair
b6d123d08b
Update to golang 1.20 minor release.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-11 15:03:48 +12:00
James Blair
f7126aa1c3
depdendency: bump golang.org/x/sys from 0.10.0 to 0.11.0.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-06 19:02:15 +12:00
=
5896e40d23
dependency: bump go.uber.org/zap 1.24.0 to 1.25.0
...
Co-authored-by: James Blair <mail@jamesblair.net>
Signed-off-by: = <abby.crimlis@outlook.com>
2023-08-03 14:46:33 +12:00
Benjamin Wang
149256735d
dependency: bump golang.org/x/sys from v0.9.0 to v0.10.0
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-07-10 18:38:16 +01:00
Prasad Chandrasekaran
3a8c6d749f
manual dependency bump
...
Signed-off-by: Prasad Chandrasekaran <prasadc@vmware.com>
2023-06-13 23:28:47 +05:30
Chao Chen
b2c39fc8e6
2023-06-06: bump up dependencies update identified by dependabot
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-06-06 20:18:44 -07:00
Benjamin Wang
3413f2e08d
Merge pull request #15908 from cuishuang/main
...
*: use strings.Builder instead of bytes.Buffer
2023-05-26 09:41:01 +08:00
Bogdan Kanivets
ef91e8ae78
dependency: bump github.com/stretchr/testify from 1.8.2 to 1.8.3
...
Signed-off-by: Bogdan Kanivets <bkanivets@apple.com>
2023-05-24 23:58:13 -07:00
cui fliter
0c919dc212
use the more efficient strings.Builder
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-05-19 10:44:58 +08:00
Prasad Chandrasekaran
c863f1f8c0
dependency: bump dependabot dependencies
...
Signed-off-by: Prasad Chandrasekaran <prasadc@vmware.com>
2023-05-09 18:38:35 +05:30
Ruize Tang
a00ec2e918
etcd: Add OpenBSD-specific files for SetKeepAlivePeriod handling
...
Added keepalive_listener_unix.go and keepalive_listener_openbsd.go to
handle SetKeepAlivePeriod() specially on OpenBSD.
Signed-off-by: Ruize Tang <1466040111@qq.com>
2023-05-03 14:51:34 +08:00
cui fliter
57908723f4
fix some comments
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-20 14:26:17 +08:00
Benjamin Wang
a283eb5e03
dependency: bump golang.org/x/sys from 0.6.0 to 0.7.0
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-11 08:47:31 +08:00
James Blair
ffdd8d79a7
Fix gofmt for client/pkg/fileutil/preallocate.go.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-04-11 10:57:41 +12:00
Benjamin Wang
0406ab9a29
Merge pull request #15281 from MarkintoshZ/preallocate-docs
...
Show darwin as supported in fileutil.Preallocate docstring
2023-04-11 06:33:08 +08:00
Benjamin Wang
0c66fc9f29
dependency: bump go.uber.org/multierr from 1.9.0 to 1.11.0
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-04 15:15:32 +08:00
Benjamin Wang
bc55e615d2
dependency: bump golang.org/x/sys to v0.5.0
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-02-28 06:54:08 +08:00