Skip to content

Failing --test test_ranges locally #865

@alerque

Description

@alerque

I'm having some trouble with my feature fork in #839 locally failing an unrelated test. The weird thing is that it wasn't failing for me locally just a few days ago.

  • I also checked the main branch and it is failing the same tests.
  • Then I tried --locked to make sure it wasn't some dependency, that didn't help.
  • Then I tried building with different Rust versions to see if nightly vs. stable was related, it wasn't.

Any idea what gives here?

$ git checkout v0.20.0
HEAD is now at c6e8619 v0.20.0
$ cargo +stable test --locked --test test_ranges
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s
     Running tests/test_ranges.rs (/home/caleb/.local/share/cargo/debug/deps/test_ranges-4034f8149668c366)

running 19 tests
test test_nested_range_function_call ... ok
test test_nested_range_do ... ok
test test_dont_modify_eof ... ok
test test_incomplete_range ... ok
test test_default ... ok
test test_nested_range_generic_for ... ok
test test_nested_range_function_call_table ... ok
test test_nested_range_binop ... ok
test test_nested_range ... ok
test test_nested_range_else_if ... ok
test test_large_example ... ok
test test_nested_range_repeat ... ok
test test_nested_range_table_1 ... ok
test test_no_range_start ... ok
test test_no_range_end ... ok
test test_nested_range_while ... ok
test test_nested_range_local_function ... ok
test test_nested_range_table_2 ... ok
test test_ignore_last_stmt ... FAILED

failures:

---- test_ignore_last_stmt stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: ignore_last_stmt
Source: tests/test_ranges.rs:44
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Expression: format(
    r###"||f||unction foo()
    return bar
end"###,
)
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    0       │-function foo()
          0 │+function  foo()
    1     1 │     return bar
    2     2 │ end
────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'test_ignore_last_stmt' panicked at /home/caleb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/insta-1.34.0/src/runtime.rs:563:9:
snapshot assertion for 'ignore_last_stmt' failed in line 44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    test_ignore_last_stmt

test result: FAILED. 18 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

error: test failed, to rerun pass `--test test_ranges`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions