File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -173,30 +173,25 @@ const drivers: Array<() => Promise<QueueDriverConfig> | QueueDriverConfig> = [
173173 name : "SqsQueue" ,
174174 features : {
175175 supportsPriority : false , // SQS doesn't support priority ordering
176- supportsDelayedJobs : false , // LocalStack doesn't properly support DelaySeconds
176+ supportsDelayedJobs : true , // ElasticMQ supports DelaySeconds
177177 supportsStatus : false , // SQS doesn't support status queries
178178 } ,
179179 beforeAll : async ( ) => {
180- sqsContainer = await new GenericContainer ( "localstack/localstack:3.0" )
181- . withEnvironment ( {
182- SERVICES : "sqs" ,
183- DEBUG : "1" ,
184- PERSISTENCE : "0" ,
185- } )
186- . withExposedPorts ( 4566 )
187- . withStartupTimeout ( 90000 )
180+ sqsContainer = await new GenericContainer ( "softwaremill/elasticmq-native:1.5.7" )
181+ . withExposedPorts ( 9324 )
182+ . withStartupTimeout ( 30000 )
188183 . start ( ) ;
189184
190185 const endpoint = `http://${ sqsContainer . getHost ( ) } :${ sqsContainer . getMappedPort (
191- 4566
186+ 9324
192187 ) } `;
193188
194189 sqsClient = new SQSClient ( {
195- region : "us-east-1 " ,
190+ region : "elasticmq " ,
196191 endpoint,
197192 credentials : {
198- accessKeyId : "test " ,
199- secretAccessKey : "test " ,
193+ accessKeyId : "x " ,
194+ secretAccessKey : "x " ,
200195 } ,
201196 } ) ;
202197
You can’t perform that action at this time.
0 commit comments