You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo test
Finished test [unoptimized + debuginfo] target(s) in 0.04s
Running unittests src/lib.rs (target/debug/deps/matrix_http_rendezvous-2ec065ed56a28c29)
running 8 tests
test tests::test_post_and_get_if_none_match ... ok
test tests::test_post_and_put ... FAILED
test tests::test_post_delete_and_get ... ok
test tests::test_post_and_get ... ok
test tests::test_post_and_put_if_match ... ok
test tests::test_eviction ... ok
test tests::test_monotonically_increasing ... ok
test tests::test_post_max_bytes ... ok
failures:
---- tests::test_post_and_put stdout ----
session: ETag("\"X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\"")
if_match: IfMatch(Tags(""))
thread 'tests::test_post_and_put' panicked at 'assertion failed: `(left == right)`
left: `412`,
right: `202`', src/tests.rs:284:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
tests::test_post_and_put
test result: FAILED. 7 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s
error: test failed, to rerun pass `--lib`
From my reading this means that if_match is not None here:
From my reading this means that
if_match
is not None here:rust-http-rendezvous-server/src/handlers.rs
Line 68 in 48e4da0
But that is a surprise, since we do not specify this header here:
rust-http-rendezvous-server/src/tests.rs
Lines 279 to 282 in 182e364
Something wrong with my setup, maybe?
The text was updated successfully, but these errors were encountered: