mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: fix unconvert linter
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
parent
4704a5af3a
commit
8870cb3070
@ -183,7 +183,7 @@ func mustExecuteTxn(cx ctlCtx, reqData string) (bool, []any) {
|
||||
clus := cx.epc
|
||||
args := e2e.CURLPrefixArgsCluster(clus.Cfg, clus.Procs[0], "POST", e2e.CURLReq{
|
||||
Endpoint: "/v3/kv/txn",
|
||||
Value: string(reqData),
|
||||
Value: reqData,
|
||||
})
|
||||
resp, err := runCommandAndReadJsonOutput(args)
|
||||
require.NoError(cx.t, err)
|
||||
|
@ -53,7 +53,7 @@ func (e integrationRunner) NewCluster(ctx context.Context, t testing.TB, opts ..
|
||||
QuotaBackendBytes: cfg.QuotaBackendBytes,
|
||||
DisableStrictReconfigCheck: !cfg.StrictReconfigCheck,
|
||||
AuthToken: cfg.AuthToken,
|
||||
SnapshotCount: uint64(cfg.SnapshotCount),
|
||||
SnapshotCount: cfg.SnapshotCount,
|
||||
}
|
||||
integrationCfg.ClientTLS, err = tlsInfo(t, cfg.ClientTLS)
|
||||
if err != nil {
|
||||
|
@ -126,7 +126,7 @@ func testEtcdGrpcResolver(t *testing.T, lbPolicy string) {
|
||||
|
||||
// Allow 25% tolerance as round robin is not perfect and we don't want the test to flake
|
||||
expected := float64(totalRequests) * 0.5
|
||||
assert.InEpsilon(t, float64(expected), float64(responses), 0.25, "unexpected total responses from foo: %s", string(lastResponse))
|
||||
assert.InEpsilon(t, expected, float64(responses), 0.25, "unexpected total responses from foo: %s", string(lastResponse))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ linters:
|
||||
- staticcheck
|
||||
- stylecheck
|
||||
- unused
|
||||
# - unconvert # Remove unnecessary type conversions TODO: enable by #16610
|
||||
- unconvert # Remove unnecessary type conversions
|
||||
linters-settings: # please keep this alphabetized
|
||||
goimports:
|
||||
local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages.
|
||||
|
Loading…
x
Reference in New Issue
Block a user