Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Mar 23, 2023
1 parent 2986df2 commit f26b1e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:
run: docker exec datagen datagen -s /tests/schema.json -f avro -n 3 --record-size 100 -d -w 100 -p json

- name: Produce to Kafka from Avro Schema in Avro Format
run: docker exec datagen datagen -s /tests/schema.avsc -f avro -n 3 --record-size 100 -d -w 100 -p sql
run: docker exec datagen datagen -s /tests/schema.avsc -f avro -n 3 --record-size 100 -d -w 100 -p avro

- name: Clean Kafka topic
run: docker exec datagen datagen -s /tests/schema2.sql -f json -d --clean

- name: Clean Kafka topic with prefix
run: docker exec datagen datagen -s /tests/schema2.sql -f json -d --clean --prefix test
run: docker exec datagen datagen -s /tests/schema2.sql -f json -d --clean --prefix json

- name: Clean Kafka topic and schema registry
run: docker exec datagen datagen -s /tests/schema.avsc -f avro -d --clean
run: docker exec datagen datagen -s /tests/schema.avsc -f avro -d --clean --prefix avro

- name: Docker Compose Down
run: docker compose down -v
2 changes: 1 addition & 1 deletion datagen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (!fs.existsSync(options.schema)) {
name: `Schema file ${options.schema} does not exist!`,
msg: ``
});
process.exit();
process.exit(1);
}

global.debug = options.debug;
Expand Down
1 change: 1 addition & 0 deletions src/kafka/cleanKafka.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ async function deleteSchemaSubjects(topics: any): Promise<void> {
.catch((error) => {
console.error(error.response.status);
console.error(error.response.data.message);
process.exit(1);
});
}
}
Expand Down

0 comments on commit f26b1e0

Please sign in to comment.