-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
near sdk 5.1.0 tests issue #1168
Comments
@zavodil Can you provide a minimum reproducible example, please? |
Hi! I faced similar issue while trying to test near-sdk-rs examples, but interesting enough when I tried to replicate this issue in ordinary smart contract everything was ok.
and create a test in test module:
Then |
@zavodil @StarGachinum I have finally identified the problem. You have to enable near-sdk-rs/examples/status-message/Cargo.toml Lines 13 to 14 in 0f46b0d
I will keep this issue open to invite contributors to add this section to all the examples in this repo and make sure we run all the tests as it seems that currently we don't run those tests in some examples. At least, the following examples are affected and running
|
hi @frol i would love to take up this issue |
Hi @g4titanx! |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have contributed to rust projects like rust_codegen_gcc, reth, etc and have relevant experience to tackle this How I plan on tackling this issueAs problem is found by @frol, I would enable unit-testing feature in examples to run tests successfully |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHi team, How I plan on tackling this issueI will do research and also use @frol's clue to fix the issue, to ensure the repository tests run as expected. |
Oh wow, there is a lot of interest. I will assign it to @lordshashank as we had a discussion about another issue and I shared this one instead |
@lordshashank Are you working on it? If you won't submit a PR today, I will unassign it to let other contributors to take it |
I can't run simple tests after upgrading to 5.1.0
throws an error:
error: linking with `cc` failed: exit status: 1
both for
aarch64-apple-darwin
andx86_64-apple-darwin
Switching to sdk 4.1.1 resolves the issue.
Full output:
The text was updated successfully, but these errors were encountered: