Skip to content

Commit

Permalink
tested against remote SQS instance; tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
J-tt committed Jul 29, 2024
1 parent 825195c commit f452d83
Show file tree
Hide file tree
Showing 5 changed files with 236 additions and 1,053 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 0 additions & 1 deletion lib/rabbit.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import test, { ExecutionContext } from "ava";
import { connect } from "amqplib";
import { ulid } from "ulid";
import { AbortController } from "node-abort-controller";

import { RabbitHelper } from "./rabbit";

Expand Down
5 changes: 3 additions & 2 deletions lib/sqs.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import test from "ava";
import { SQSClient } from "@aws-sdk/client-sqs";
import { AbortController } from "node-abort-controller";
import { ulid } from "ulid";

import { SQS, SQSData, SQSHelper } from "./sqs";
Expand All @@ -11,10 +10,12 @@ const noopLogger = {

function setup() {
if (process.env.SQS_QUEUE_URL) {
const queueUrl = new URL(process.env.SQS_QUEUE_URL);
const region = queueUrl.hostname.split(".")[1];
return {
queueUrl: process.env.SQS_QUEUE_URL,
sqs: new SQSHelper({
sqs: new SQSClient(),
sqs: new SQSClient({ region: region }),
logger: noopLogger,
}),
};
Expand Down
Loading

0 comments on commit f452d83

Please sign in to comment.