Skip to content

Commit

Permalink
etcdserver: fix errors package name conflict
Browse files Browse the repository at this point in the history
Signed-off-by: redwrasse <[email protected]>
  • Loading branch information
redwrasse committed Sep 6, 2024
1 parent d7b68bc commit 8b68a6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/etcdserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package etcdserver
import (
"context"
"encoding/json"
"errors"
errorspkg "errors"
"fmt"
"math"
"net/http"
Expand Down Expand Up @@ -389,7 +389,7 @@ func TestApplyConfChangeError(t *testing.T) {
cluster: cl,
}
_, err := srv.applyConfChange(tt.cc, nil, true)
if !errors.Is(err, tt.werr) {
if !errorspkg.Is(err, tt.werr) {
t.Errorf("#%d: applyConfChange error = %v, want %v", i, err, tt.werr)
}
cc := raftpb.ConfChange{Type: tt.cc.Type, NodeID: raft.None, Context: tt.cc.Context}
Expand Down Expand Up @@ -1534,7 +1534,7 @@ func TestWaitAppliedIndex(t *testing.T) {

err := s.waitAppliedIndex()

if !errors.Is(err, tc.ExpectedError) {
if !errorspkg.Is(err, tc.ExpectedError) {
t.Errorf("Unexpected error, want (%v), got (%v)", tc.ExpectedError, err)
}
})
Expand Down

0 comments on commit 8b68a6e

Please sign in to comment.