Skip to content

Test logger not syncing to disk or flushing? #172

@sc68cal

Description

@sc68cal

Running jetzig test results in a log file that appears to be a little corrupted

[jetzig] Launching Test Runner...

[PASS] tests::"tests.test_0" [240ns]
[PASS] src.app.views.containers::"index" [72.235ms]
[PASS] src.app.views.containers::"get" [296.537ms]
[PASS] src.app.views.containers::"get returns 404" [75.76ms]
[PASS] src.app.views.containers::"post" [73.384ms]
[PASS] src.app.views.containers::"delete" [81.54ms]
[PASS] src.app.views.containers::"delete 404" [73.236ms]

 ✔  failed 0
 ✔  leaked 0
   skipped 0
     tests 7
  duration 674.524ms

      PASS   

Contents of log/test.log

-- test logger: INFO [database] SELECT "containers"."id", "containers"."container_number", "containers"."created_at", "containers"."updated_at" FROM "containers" WHERE "containers"."id" = $1 ORDER BY "containers"."id" ASC LIMIT $2
-- test logger: INFO [DELETE|1.383ms|404 Not Found] /containers/9009
gger: INFO [DELETE|7.438ms|200 OK] /containers/1
[33m1.784ms|200 OK] /containers/1
-- test logger: INFO [database] SELECT "containers"."id", "containers"."container_number", "containers"."created_at", "containers"."updated_at" FROM "containers" WHERE "containers"."id" = $1 ORDER BY "containers"."id" ASC LIMIT $2
-- test logger: INFO [GET|389.975us|404 Not Found] /containers/9009

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions