https://opendal.apache.org/ logo
Hi, <@555996134355763205> , do you know why this t...
# general
x
Hi, @suyanhanx , do you know why this test failed?
Copy code
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `0`: failed to delete napi ref', src/lib.rs:198:1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
I failed to reproduce it locally
s
Let me have a look.
Me, too. 🫤
Could we rerun this?
x
by the way, we don't need to test fs service itself
opendal will make sure they are working correctly.
s
yep.
x
I will remove the fs related test for now
s
🥹
What aspects should be paid attention to when conducting binding tests?
x
I think we should test the binding behavior instead of opendal services behavior.
I'm guessing test against memory service is enough (
s
🫤 But memory can't cover all ops.
x
question: does binding readlly need test?
s
hhh
x
since all our bindings are just mapping to opendal's public api directly (which is well tested)
Maybe we just need to make sure they can build?
s
As it is still very useful in local development currently.
After all API is confirmed, we may remove tests ?
SGTM.
x
We can implement a mock service in the future, which just assert the input args is as expected.
which means our binding works as expected.
s
good idea.
4 Views