mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-10-13 17:02:17 -05:00
Merge branch 'master' into 3.0.X
# Conflicts: # package-lock.json # package.json
This commit is contained in:
29 files changed
+1139
-179
No files matched your search
@@ -0,0 +1,15 @@
|
||||
const { describe, test } = require("node:test");
|
||||
const assert = require("node:assert");
|
||||
const { kafkaProducerAsync } = require("../../../server/util-server");
|
||||
|
||||
describe("Kafka Producer", () => {
|
||||
test("rejects when broker is not reachable", async () => {
|
||||
await assert.rejects(
|
||||
kafkaProducerAsync(["localhost:19092"], "test-topic", "test-message", {
|
||||
interval: 5,
|
||||
connectionTimeout: 1,
|
||||
}),
|
||||
/.*/ // any error
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user