revert: remove goleak

This commit is contained in:
Kevin Franklin Kim 2024-04-16 09:52:14 +02:00
parent 8882274093
commit 2038db3570
No known key found for this signature in database
3 changed files with 1 additions and 8 deletions

1
go.mod
View File

@ -38,7 +38,6 @@ require (
go.temporal.io/api v1.8.0
go.temporal.io/sdk v1.15.0
go.temporal.io/sdk/contrib/opentelemetry v0.1.0
go.uber.org/goleak v1.3.0
go.uber.org/zap v1.27.0
golang.org/x/crypto v0.22.0
golang.org/x/sync v0.7.0

View File

@ -5,12 +5,9 @@ import (
"github.com/foomo/keel/keeltest"
"github.com/stretchr/testify/assert"
"go.uber.org/goleak"
)
func TestInline(t *testing.T) {
defer goleak.VerifyNone(t)
t.Run("read inline", func(t *testing.T) {
value, ok := keeltest.Inline(t, 1) // INLINE: hello world
assert.True(t, ok)

View File

@ -12,7 +12,6 @@ import (
"github.com/foomo/keel/service"
"github.com/stretchr/testify/suite"
"go.uber.org/goleak"
"go.uber.org/zap"
"go.uber.org/zap/zaptest"
@ -74,9 +73,7 @@ func (s *KeelTestSuite) AfterTest(suiteName, testName string) {
}
// TearDownSuite hook
func (s *KeelTestSuite) TearDownSuite() {
goleak.VerifyNone(s.T())
}
func (s *KeelTestSuite) TearDownSuite() {}
func (s *KeelTestSuite) TestServiceHTTP() {
s.svr.AddServices(