Skip to content

Test failures in git-repository from_bare_parent_repo from_nonbare_parent_repo #509

Closed
@joelparkerhenderson

Description

@joelparkerhenderson

Duplicates

  • I have searched the existing issues

Current behavior 😯

I'm trying git-repository for the first time, and seeing test failures:

$ cd git-repository 
$ cargo test

Output:

failures:

---- repository::worktree::from_bare_parent_repo stdout ----
thread 'repository::worktree::from_bare_parent_repo' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }', tests/tools/src/lib.rs:69:79
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- repository::worktree::from_nonbare_parent_repo stdout ----
thread 'repository::worktree::from_nonbare_parent_repo' panicked at 'Lazy instance has previously been poisoned', /Users/jph/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.13.0/src/lib.rs:1231:25


failures:
    repository::worktree::from_bare_parent_repo
    repository::worktree::from_nonbare_parent_repo

test result: FAILED. 90 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.69s

error: test failed, to rerun pass '--test git'

Expected behavior 🤔

Expected: tests all pass

Steps to reproduce 🕹

Reproduce:

$ cd git-repository 
$ cargo test

I'm using current macOS on M1:

$ uname -a
Darwin … 21.6.0 Darwin Kernel Version 
21.6.0: Wed Aug 10 14:28:23 PDT 2022; 
root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 arm64

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions