I'm testing my store which uses raft_engine as its log store. I was trying to unit test my integration against the same test cases of MemStorage from raft-rs, in specific test_storage_append. I have found that each test case when ran individually, works. But when i test it all in one #[test]. It appears to behave weirdly, it fails on the second test case tests[1] but when i swap the first and second test case, it fails on the second test case. And when I added logging in between the initialization of the storage and writing of ents. It causes the third case to fail and the first 2 to succeed. Any ideas?
I'm testing my store which uses raft_engine as its log store. I was trying to unit test my integration against the same test cases of
MemStoragefrom raft-rs, in specifictest_storage_append. I have found that each test case when ran individually, works. But when i test it all in one#[test]. It appears to behave weirdly, it fails on the second test casetests[1]but when i swap the first and second test case, it fails on the second test case. And when I added logging in between the initialization of the storage and writing ofents. It causes the third case to fail and the first 2 to succeed. Any ideas?