Skip to content

Commit

Permalink
remove parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jxsl13 committed Mar 15, 2024
1 parent acda79f commit f5cfb80
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
5 changes: 1 addition & 4 deletions pool/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func TestNewSingleConnection(t *testing.T) {
t.Parallel() // can be run in parallel because the connection to the rabbitmq is never broken

var (
ctx = context.TODO()
nextName = testutils.ConnectionNameGenerator()
Expand All @@ -36,7 +36,6 @@ func TestNewSingleConnection(t *testing.T) {
}

func TestManyNewConnection(t *testing.T) {
t.Parallel() // can be run in parallel because the connection to the rabbitmq is never broken

var (
ctx = context.TODO()
Expand Down Expand Up @@ -74,7 +73,6 @@ func TestManyNewConnection(t *testing.T) {
}

func TestNewSingleConnectionWithDisconnect(t *testing.T) {
t.Parallel()
var (
ctx = context.TODO()
proxyName, connectURL, _ = testutils.NextConnectURL()
Expand All @@ -101,7 +99,6 @@ func TestNewSingleConnectionWithDisconnect(t *testing.T) {
}

func TestManyNewConnectionWithDisconnect(t *testing.T) {
t.Parallel()

var (
ctx = context.TODO()
Expand Down
1 change: 0 additions & 1 deletion pool/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func TestMain(m *testing.M) {
}

func TestNewPool(t *testing.T) {
t.Parallel() // can be run in parallel because the connection to the rabbitmq is never broken

var (
ctx = context.TODO()
Expand Down
2 changes: 0 additions & 2 deletions pool/session_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
)

func TestSingleSessionPool(t *testing.T) {
t.Parallel() // can be run in parallel because the connection to the rabbitmq is never

var (
poolName = testutils.FuncName()
Expand Down Expand Up @@ -56,7 +55,6 @@ func TestSingleSessionPool(t *testing.T) {
}

func TestNewSessionPool(t *testing.T) {
t.Parallel() // can be run in parallel because the connection to the rabbitmq is never

var (
poolName = testutils.FuncName()
Expand Down
4 changes: 0 additions & 4 deletions pool/subscriber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
)

func TestNewSingleSubscriber(t *testing.T) {
t.Parallel()

var (
ctx = context.TODO()
Expand Down Expand Up @@ -54,7 +53,6 @@ func TestNewSingleSubscriber(t *testing.T) {
}

func TestNewSingleSubscriberWithDisconnect(t *testing.T) {
t.Parallel()

var (
ctx = context.TODO()
Expand Down Expand Up @@ -99,7 +97,6 @@ func TestNewSingleSubscriberWithDisconnect(t *testing.T) {
}

func TestNewSingleBatchSubscriber(t *testing.T) {
t.Parallel()

var (
ctx = context.TODO()
Expand Down Expand Up @@ -152,7 +149,6 @@ func TestNewSingleBatchSubscriber(t *testing.T) {
}

func TestBatchSubscriberMaxBytes(t *testing.T) {
t.Parallel()
var wg sync.WaitGroup
funcName := testutils.FuncName()

Expand Down

0 comments on commit f5cfb80

Please sign in to comment.