Actually start the suite

This commit is contained in:
Lucas Rouckhout
2023-02-04 15:05:57 +01:00
parent fb932f00b8
commit 6f7e7456a2

View File

@@ -11,6 +11,7 @@ import (
"github.com/getAlby/lndhub.go/lib/service" "github.com/getAlby/lndhub.go/lib/service"
amqp "github.com/rabbitmq/amqp091-go" amqp "github.com/rabbitmq/amqp091-go"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
) )
type RabbitMQTestSuite struct { type RabbitMQTestSuite struct {
@@ -96,3 +97,7 @@ func (suite *RabbitMQTestSuite) TestPublishInvoice(t *testing.T) {
assert.Equal(t, invoice.RHash, recievedInvoice.RHash) assert.Equal(t, invoice.RHash, recievedInvoice.RHash)
} }
func TestRabbitMQTestSuite(t *testing.T) {
suite.Run(t, new(RabbitMQTestSuite))
}