-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
[BUG]: Command solana-test-validator --bpf-program...
not recognized as used
#159
Comments
Thanks for opening this. If there is no easy way around the wrapping, the test could be changed to: const command = `curl http://127.0.0.1:8899 -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"BPFLoader2111111111111111111111111111111111", {
"encoding": "base64",
"dataSlice": {
"length": 0,
"offset": 0
}
}
]
}'`;
const { stdout, stderr } = await __helpers.getCommandOutput(command);
try {
const jsonOut = JSON.parse(stdout);
assert.exists(
jsonOut.result.find(
r => r.pubkey === 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s'
)
);
} catch (e) {
assert.fail(
e,
'Try running `solana-test-validator --bpf-program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s ./mlp_token.so --reset`'
);
} |
I've unsuccessfully tried to change in What worked was changing
Which appears to be much simpler. I'm unable to come up with an example when keeping What do you think? |
Is the character before the
I can imagine some cases where a |
I thought so, but it's more interesting. When typing by hand character is not repeated, meanwhile it is repeated when text is pasted to the terminal. 👀 However, when typing it, one can encounter different issue - any mistake will prevent test from passing. Even if it's corrected before command is submitted. The line in |
Ah, yes. I was not thinking about the prompt input like that. In that case, I will document this behaviour as a warning when using |
Issue/Experience
Learn the Metaplex SDK by Minting an NFT - Lesson 35 requires running in terminal command:
Despite of running it, test might not recognize that. Due to how command from terminal is saved in temp for tests.
I had some troubles with passing this test. Seemingly everything was fine, but it still couldn't pass.
solana-curriculum/curriculum/locales/english/learn-the-metaplex-sdk-by-minting-an-nft.md
Lines 2192 to 2200 in d4b889e
Meanwhile, copied from the
actual
field in the client console:Relevant line:
As it can be seen ending differs from what is desired. How does
r\rr
gets there? It's from when long line entered to the terminal wraps itself.After widening terminal a bit, so it doesn't wrap, test passed without issues.
Looks like terminal wrapping needs to be handled at some point. But, here in test, or at the step of reading from temp?
Output of running
node tooling/camper-info.js
from the workspace rootThe text was updated successfully, but these errors were encountered: