Skip to content

Commit 16d74ab

Browse files
committed
debugging
1 parent 488e336 commit 16d74ab

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/actions/rest-test/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ runs:
2020
working-directory: tmp/nscp
2121
shell: cmd
2222
run: |
23+
del nsclient.log
2324
cmd /c "start nscp test --settings ..\..\tests\rest\nsclient.ini"
2425
2526
- name: Install dependencies

tests/rest/log.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ describe("log", () => {
8383
expect(Array.isArray(response.body)).toBe(true);
8484
const logs = response.body;
8585
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+
}
8689
expect(testLog).toBeDefined();
8790
expect(testLog.level).toBe("info");
8891
expect(testLog.file).toBe("rest.test.ts");

0 commit comments

Comments
 (0)