Skip to content

Commit

Permalink
Add new gofail enablement for "CrashAfterAddMember".
Browse files Browse the repository at this point in the history
  • Loading branch information
soma00333 committed Jan 22, 2025
1 parent 195a6cf commit 9468db9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require (
go.etcd.io/etcd/client/pkg/v3 v3.5.17
go.etcd.io/etcd/client/v3 v3.5.17
go.etcd.io/etcd/server/v3 v3.5.17
go.etcd.io/gofail v0.2.0
go.uber.org/zap v1.27.0
k8s.io/api v0.32.1
k8s.io/apimachinery v0.32.1
Expand Down Expand Up @@ -86,7 +87,6 @@ require (
go.etcd.io/etcd/client/v2 v2.305.17 // indirect
go.etcd.io/etcd/pkg/v3 v3.5.17 // indirect
go.etcd.io/etcd/raft/v3 v3.5.17 // indirect
go.etcd.io/gofail v0.2.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.53.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
go.opentelemetry.io/otel v1.28.0 // indirect
Expand Down
3 changes: 3 additions & 0 deletions test/e2e_failpoint/scale_failpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
. "github.com/onsi/gomega"

"go.etcd.io/etcd-operator/test/utils"
gofail "go.etcd.io/gofail/runtime"
)

// namespace where the project is deployed in
Expand All @@ -43,6 +44,8 @@ const metricsServiceName = "etcd-operator-controller-manager-metrics-service"
const metricsRoleBindingName = "etcd-operator-metrics-binding"

var _ = Describe("Manager", Ordered, func() {
// Temp
gofail.Enable("CrashAfterAddMember", `return("hello")`)

Check failure on line 48 in test/e2e_failpoint/scale_failpoint_test.go

View workflow job for this annotation

GitHub Actions / Run on Ubuntu

Error return value of `gofail.Enable` is not checked (errcheck)
var controllerPodName string

// Before running the tests, set up the environment by creating the namespace,
Expand Down

0 comments on commit 9468db9

Please sign in to comment.