Skip to content

Commit

Permalink
Fix integration tests due to directory shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesir87 committed Nov 26, 2024
1 parent 83cec56 commit f731f75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build with GHA
name: Test and validate

on:
push: {}
Expand Down
3 changes: 1 addition & 2 deletions test/integration/containerSupport.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ const { PostgreSqlContainer } = require("@testcontainers/postgresql");
const { KafkaContainer } = require("@testcontainers/kafka");
const { LocalstackContainer } = require("@testcontainers/localstack");
const path = require("path");
const { S3Client } = require("@aws-sdk/client-s3");

async function createAndBootstrapPostgresContainer() {
const postgresContainer = await new PostgreSqlContainer()
.withBindMounts([
{
source: path.join(__dirname, "../dev/db"),
source: path.join(__dirname, "../../dev/db"),
target: "/docker-entrypoint-initdb.d",
readOnly: false,
},
Expand Down
4 changes: 2 additions & 2 deletions test/integration/productCreation.integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ describe("Product creation", () => {
}, 120000); // Making this very long in case the images need to be pulled

beforeAll(async () => {
productService = require("../src/services/ProductService");
publisherService = require("../src/services/PublisherService");
productService = require("../../src/services/ProductService");
publisherService = require("../../src/services/PublisherService");
});

afterAll(async () => {
Expand Down

0 comments on commit f731f75

Please sign in to comment.