@@ -21,34 +21,27 @@ import (
2121)
2222
2323func TestPubSub (t * testing.T ) {
24- tests .TestPubSub (
25- t ,
26- tests.Features {
27- ConsumerGroups : false ,
28- ExactlyOnceDelivery : false ,
29- GuaranteedOrder : true ,
30- Persistent : true ,
31- },
32- createPubSub ,
33- createPubSubWithConsumerGroup ,
34- )
35- }
24+ t .Parallel ()
3625
37- func TestPubSub_stress (t * testing.T ) {
38- tests .TestPubSubStressTest (
26+ tests .TestPubSub (
3927 t ,
4028 tests.Features {
4129 ConsumerGroups : false ,
4230 ExactlyOnceDelivery : false ,
4331 GuaranteedOrder : true ,
4432 Persistent : true ,
33+ // Currently none of emulators are stable enough to
34+ // handle all tests, see: https://github.com/localstack/localstack/issues/2074
35+ ForceShort : true ,
4536 },
4637 createPubSub ,
4738 createPubSubWithConsumerGroup ,
4839 )
4940}
5041
5142func TestPublishSubscribe_with_GenerateQueueUrlResolver (t * testing.T ) {
43+ t .Parallel ()
44+
5245 tests .TestPublishSubscribe (
5346 t ,
5447 tests.TestContext {
@@ -59,6 +52,9 @@ func TestPublishSubscribe_with_GenerateQueueUrlResolver(t *testing.T) {
5952 GuaranteedOrder : true ,
6053 GuaranteedOrderWithSingleSubscriber : true ,
6154 Persistent : true ,
55+ // Currently none of emulators are stable enough to
56+ // handle all tests, see: https://github.com/localstack/localstack/issues/2074
57+ ForceShort : true ,
6258 },
6359 },
6460 func (t * testing.T ) (message.Publisher , message.Subscriber ) {
@@ -112,6 +108,8 @@ func TestPublishSubscribe_with_GenerateQueueUrlResolver(t *testing.T) {
112108}
113109
114110func TestPublishSubscribe_with_TransparentUrlResolver (t * testing.T ) {
111+ t .Parallel ()
112+
115113 tests .TestPublishSubscribe (
116114 t ,
117115 tests.TestContext {
@@ -125,6 +123,9 @@ func TestPublishSubscribe_with_TransparentUrlResolver(t *testing.T) {
125123 GenerateTopicFunc : func (tctx tests.TestContext ) string {
126124 return fmt .Sprintf ("http://sqs.us-west-2.localhost.localstack.cloud:4566/000000000000/%s" , tctx .TestID )
127125 },
126+ // Currently none of emulators are stable enough to
127+ // handle all tests, see: https://github.com/localstack/localstack/issues/2074
128+ ForceShort : true ,
128129 },
129130 },
130131 func (t * testing.T ) (message.Publisher , message.Subscriber ) {
@@ -175,6 +176,8 @@ func TestPublishSubscribe_with_TransparentUrlResolver(t *testing.T) {
175176}
176177
177178func TestPublishSubscribe_batching (t * testing.T ) {
179+ t .Parallel ()
180+
178181 tests .TestPublishSubscribe (
179182 t ,
180183 tests.TestContext {
@@ -185,6 +188,9 @@ func TestPublishSubscribe_batching(t *testing.T) {
185188 GuaranteedOrder : true ,
186189 GuaranteedOrderWithSingleSubscriber : true ,
187190 Persistent : true ,
191+ // Currently none of emulators are stable enough to
192+ // handle all tests, see: https://github.com/localstack/localstack/issues/2074
193+ ForceShort : true ,
188194 },
189195 },
190196 func (t * testing.T ) (message.Publisher , message.Subscriber ) {
@@ -231,6 +237,8 @@ func TestPublishSubscribe_batching(t *testing.T) {
231237}
232238
233239func TestPublishSubscribe_creating_queue_with_different_settings_should_be_idempotent (t * testing.T ) {
240+ t .Parallel ()
241+
234242 logger := watermill .NewStdLogger (false , false )
235243
236244 sub1 , err := sqs .NewSubscriber (sqs.SubscriberConfig {
@@ -264,6 +272,8 @@ func TestPublishSubscribe_creating_queue_with_different_settings_should_be_idemp
264272}
265273
266274func TestPublisher_GetOrCreateQueueUrl_is_idempotent (t * testing.T ) {
275+ t .Parallel ()
276+
267277 pub , _ := createPubSub (t )
268278
269279 topicName := watermill .NewUUID ()
@@ -280,6 +290,8 @@ func TestPublisher_GetOrCreateQueueUrl_is_idempotent(t *testing.T) {
280290}
281291
282292func TestSubscriber_doesnt_hang_when_queue_doesnt_exist (t * testing.T ) {
293+ t .Parallel ()
294+
283295 cfg := newAwsConfig (t )
284296
285297 _ , sub := createPubSubWithConfig (
@@ -315,6 +327,8 @@ func TestSubscriber_doesnt_hang_when_queue_doesnt_exist(t *testing.T) {
315327}
316328
317329func TestPublisher_do_not_create_queue (t * testing.T ) {
330+ t .Parallel ()
331+
318332 cfg := newAwsConfig (t )
319333
320334 pub , _ := createPubSubWithConfig (
0 commit comments