Skip to content

cargo test sometimes fails to run on master #23189

Open
@thomasqueirozb

Description

@thomasqueirozb

A note for the community

Workaround

Use cargo nextest run instead of cargo run. Install it by running cargo install --locked cargo-nextest

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

cargo test sometimes fails to run on master

test sources::journald::tests::emits_cursor ... FAILED

failures:

---- sources::journald::tests::emits_cursor stdout ----

thread 'sources::journald::tests::emits_cursor' panicked at src/sources/journald.rs:1252:36:
index out of bounds: the len is 0 but the index is 0

Configuration


Version

vector 0.48.0-custom-60fdc8a1c (aarch64-apple-darwin debug=full)

Debug Output


Example Data

No response

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA code related bug.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions