Skip to content

Commit

Permalink
chore: remove unnecessary package
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Aug 30, 2024
1 parent a20c226 commit 4e6a479
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
10 changes: 0 additions & 10 deletions actors/actor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import (
"github.com/stretchr/testify/require"
"github.com/travisjeffery/go-dynaport"
"go.uber.org/atomic"
"go.uber.org/goleak"

"github.com/tochemey/goakt/v2/discovery"
"github.com/tochemey/goakt/v2/discovery/nats"
Expand All @@ -47,15 +46,6 @@ import (
testspb "github.com/tochemey/goakt/v2/test/data/testpb"
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m, goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
goleak.IgnoreTopFunction("github.com/go-redis/redis/v8/internal/pool.(*ConnPool).reaper"),
goleak.IgnoreTopFunction("golang.org/x/net/http2.(*serverConn).serve"),
goleak.IgnoreTopFunction("github.com/nats-io/nats%2ego.(*Conn).doReconnect"),
goleak.IgnoreTopFunction("sync.runtime_notifyListWait"),
goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"))
}

// testActor is an actor that helps run various test scenarios
type testActor struct {
counter *atomic.Int64
Expand Down
10 changes: 0 additions & 10 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/travisjeffery/go-dynaport"
"go.uber.org/goleak"
"google.golang.org/protobuf/proto"

"github.com/tochemey/goakt/v2/actors"
Expand All @@ -46,15 +45,6 @@ import (
testspb "github.com/tochemey/goakt/v2/test/data/testpb"
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m, goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
goleak.IgnoreTopFunction("github.com/go-redis/redis/v8/internal/pool.(*ConnPool).reaper"),
goleak.IgnoreTopFunction("golang.org/x/net/http2.(*serverConn).serve"),
goleak.IgnoreTopFunction("github.com/nats-io/nats%2ego.(*Conn).doReconnect"),
goleak.IgnoreTopFunction("sync.runtime_notifyListWait"),
goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"))
}

func TestClient(t *testing.T) {
t.Run("With defaults", func(t *testing.T) {
ctx := context.TODO()
Expand Down
5 changes: 0 additions & 5 deletions future/future_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,11 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/goleak"
"google.golang.org/protobuf/proto"

"github.com/tochemey/goakt/v2/test/data/testpb"
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
}

func TestWaitOnResult(t *testing.T) {
executor := make(chan proto.Message)
f := New(executor, time.Duration(30*time.Minute))
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ require (
go.opentelemetry.io/otel/sdk/metric v1.29.0
go.opentelemetry.io/otel/trace v1.29.0
go.uber.org/atomic v1.11.0
go.uber.org/goleak v1.3.0
go.uber.org/multierr v1.11.0
go.uber.org/zap v1.27.0
golang.org/x/net v0.28.0
Expand Down

0 comments on commit 4e6a479

Please sign in to comment.