There was an error while loading. Please reload this page.
1 parent 488e336 commit 16d74abCopy full SHA for 16d74ab
2 files changed
.github/actions/rest-test/action.yaml
@@ -20,6 +20,7 @@ runs:
20
working-directory: tmp/nscp
21
shell: cmd
22
run: |
23
+ del nsclient.log
24
cmd /c "start nscp test --settings ..\..\tests\rest\nsclient.ini"
25
26
- name: Install dependencies
tests/rest/log.test.ts
@@ -83,6 +83,9 @@ describe("log", () => {
83
expect(Array.isArray(response.body)).toBe(true);
84
const logs = response.body;
85
const testLog = logs.find((log: any) => log.message === "001: This is a test log message from automated tests");
86
+ if (!testLog) {
87
+ console.log("Logs returned:", logs);
88
+ }
89
expect(testLog).toBeDefined();
90
expect(testLog.level).toBe("info");
91
expect(testLog.file).toBe("rest.test.ts");
0 commit comments