fix nats unit test connection + fix lint CI job
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed

This commit is contained in:
qpismont 2024-01-04 23:06:31 +01:00
parent 8957ad6543
commit 7fb3f19df7
3 changed files with 11 additions and 6 deletions

View file

@ -1,9 +1,8 @@
pipeline: steps:
lint: lint:
image: denoland/deno:${DENO_VERSION} image: denoland/deno:${DENO_VERSION}
commands: commands:
- deno ta - deno lint
- cargo clippy
matrix: matrix:
DENO_VERSION: DENO_VERSION:

View file

@ -1,9 +1,15 @@
pipeline: steps:
test: test:
image: denoland/deno:${DENO_VERSION} image: denoland/deno:${DENO_VERSION}
environment:
- NATS_HOST=nats:4222
commands: commands:
- deno task test - deno task test
matrix: matrix:
DENO_VERSION: DENO_VERSION:
- 1.39.1 - 1.39.1
services:
nats:
image: nats

View file

@ -7,7 +7,7 @@ import { afterEach, beforeEach, it } from "std/testing/bdd.ts";
let srv!: Service; let srv!: Service;
const natsServer = "127.0.0.1:4222"; const natsServer = Deno.env.get("NATS_HOST") || "127.0.0.1:4222";
const serviceName = "test-service"; const serviceName = "test-service";
const adaptorName = "nats"; const adaptorName = "nats";
const subject = "test"; const subject = "test";