mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration,raft,tests: Comply with go v1.15 gofmt
This commit is contained in:
parent
62596faeed
commit
35bd924596
@ -793,7 +793,9 @@ type eventsSortByKey []*mvccpb.Event
|
||||
|
||||
func (evs eventsSortByKey) Len() int { return len(evs) }
|
||||
func (evs eventsSortByKey) Swap(i, j int) { evs[i], evs[j] = evs[j], evs[i] }
|
||||
func (evs eventsSortByKey) Less(i, j int) bool { return bytes.Compare(evs[i].Kv.Key, evs[j].Kv.Key) < 0 }
|
||||
func (evs eventsSortByKey) Less(i, j int) bool {
|
||||
return bytes.Compare(evs[i].Kv.Key, evs[j].Kv.Key) < 0
|
||||
}
|
||||
|
||||
func TestV3WatchMultipleEventsPutUnsynced(t *testing.T) {
|
||||
defer testutil.AfterTest(t)
|
||||
|
@ -63,7 +63,9 @@ func (a *rawNodeAdapter) ReadIndex(_ context.Context, rctx []byte) error {
|
||||
return nil
|
||||
}
|
||||
func (a *rawNodeAdapter) Step(_ context.Context, m pb.Message) error { return a.RawNode.Step(m) }
|
||||
func (a *rawNodeAdapter) Propose(_ context.Context, data []byte) error { return a.RawNode.Propose(data) }
|
||||
func (a *rawNodeAdapter) Propose(_ context.Context, data []byte) error {
|
||||
return a.RawNode.Propose(data)
|
||||
}
|
||||
func (a *rawNodeAdapter) ProposeConfChange(_ context.Context, cc pb.ConfChangeI) error {
|
||||
return a.RawNode.ProposeConfChange(cc)
|
||||
}
|
||||
|
@ -45,7 +45,9 @@ func TestCtlV3AuthAndWatch(t *testing.T) { testCtl(t, authTestWatch) }
|
||||
func TestCtlV3AuthAndWatchJWT(t *testing.T) { testCtl(t, authTestWatch, withCfg(configJWT)) }
|
||||
|
||||
func TestCtlV3AuthLeaseTestKeepAlive(t *testing.T) { testCtl(t, authLeaseTestKeepAlive) }
|
||||
func TestCtlV3AuthLeaseTestTimeToLiveExpired(t *testing.T) { testCtl(t, authLeaseTestTimeToLiveExpired) }
|
||||
func TestCtlV3AuthLeaseTestTimeToLiveExpired(t *testing.T) {
|
||||
testCtl(t, authLeaseTestTimeToLiveExpired)
|
||||
}
|
||||
func TestCtlV3AuthLeaseGrantLeases(t *testing.T) { testCtl(t, authLeaseTestLeaseGrantLeases) }
|
||||
func TestCtlV3AuthLeaseGrantLeasesJWT(t *testing.T) {
|
||||
testCtl(t, authLeaseTestLeaseGrantLeases, withCfg(configJWT))
|
||||
|
Loading…
x
Reference in New Issue
Block a user