Skip to content

import_file test failing on macos #564

Closed
@joepio

Description

@joepio

With cargo nextest run and cargo test:

thread 'import_file' panicked at 'Unexpected failure.
code-<interrupted>
stderr=```"thread \'<unnamed>\' panicked at \'cannot access a Thread Local Storage value during or after destruction: AccessError\', /rustc/85f4f41deb1557ca8ab228319d33003dd2f20f45/library/std/src/thread/local.rs:422:26\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\nfatal runtime error: failed to initiate panic, error 5\n"```
command=`"/Users/joep/dev/github/atomicdata-dev/atomic-data-rust/target/debug/atomic-server" "import" "--file" "/Users/joep/dev/github/atomicdata-dev/atomic-data-rust/server/../lib/test_files/local_id.json"`
code=<interrupted>
stdout="Importing...\nSucesfully imported \"/Users/joep/dev/github/atomicdata-dev/atomic-data-rust/server/../lib/test_files/local_id.json\" to store.\n"
stderr="thread \'<unnamed>\' panicked at \'cannot access a Thread Local Storage value during or after destruction: AccessError\', /rustc/85f4f41deb1557ca8ab228319d33003dd2f20f45/library/std/src/thread/local.rs:422:26\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\nfatal runtime error: failed to initiate panic, error 5\n"
', /rustc/85f4f41deb1557ca8ab228319d33003dd2f20f45/library/core/src/ops/function.rs:510:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

If I try running the command without the test context, it seems to work just fine. CI also seems to run the test just fine.

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