Skip to content

Commit

Permalink
fix: golangci-lint checks
Browse files Browse the repository at this point in the history
Signed-off-by: Clement <gh.2lgqz@aleeas.com>
  • Loading branch information
clement2026 committed Aug 18, 2024
1 parent 7c40239 commit 0e4d412
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/etcd_mix_versions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.etcd.io/etcd/server/v3/etcdserver"

"go.etcd.io/etcd/client/pkg/v3/fileutil"
"go.etcd.io/etcd/server/v3/etcdserver"
"go.etcd.io/etcd/tests/v3/framework/config"
"go.etcd.io/etcd/tests/v3/framework/e2e"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/leader_snapshot_no_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.etcd.io/etcd/server/v3/etcdserver"
"go.uber.org/zap"

clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/pkg/v3/expect"
"go.etcd.io/etcd/server/v3/etcdserver"
"go.etcd.io/etcd/tests/v3/framework/config"
"go.etcd.io/etcd/tests/v3/framework/e2e"
"go.etcd.io/etcd/tests/v3/robustness/failpoint"
Expand Down
7 changes: 4 additions & 3 deletions tests/integration/v3_compact_raft_log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"time"

"github.com/stretchr/testify/assert"

pb "go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/server/v3/etcdserver"
"go.etcd.io/etcd/tests/v3/framework/integration"
Expand Down Expand Up @@ -175,10 +176,10 @@ func expectMemberLogExactCount(t *testing.T, m *integration.Member, timeout time
// make sure at MOST `count` log entries contain `s`
lines, err := m.LogObserver.Expect(ctx2, s, count+1)
if err != nil {
if errors.Is(err, context.DeadlineExceeded) {
return
} else {
if !errors.Is(err, context.DeadlineExceeded) {
t.Fatalf("failed to expect (log:%s, count:%v): %v", s, count, err)
} else {
return
}
}

Expand Down

0 comments on commit 0e4d412

Please sign in to comment.