-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error running replica tests locally #260
Comments
Hey @tomijaga , I tried on my M3 mac (15.1.1) without errors mops test --mode replica --replica pocket-ic .replica -r verboseTest files: • tests/Variant.Replica.mo • tests/Txs.Replica.mo ================================================== Running tests/Variant.Replica.mo (replica) PASS • searching with nested variant fields ✓ search for variants by their tags ✓ search via indexed fields ✓ search via non indexed fields PASS -------------------------------------------------- Running tests/Txs.Replica.mo (replica) PASS • testing txs db with queries stdout actual_query_resolution: #And([#Operation("btype", #eq(#Text("1mint")))]) stdout expected_query_resolution: #And([#Operation("btype", #eq(#Text("1mint")))]) ✓ get_txs() with btype = '1mint' stdout actual_query_resolution: #And([#Operation("tx.amt", #gte(#Nat(355)))]) stdout expected_query_resolution: #And([#Operation("tx.amt", #gte(#Nat(355)))]) ✓ get_txs() with tx.amt > 355 stdout actual_query_resolution: #And([#Operation("btype", #eq(#Text("1xfer")))]) stdout expected_query_resolution: #And([#Operation("btype", #eq(#Text("1xfer")))]) ✓ get_txs() with btype = '1xfer' stdout actual_query_resolution: #And([#Operation("btype", #eq(#Text("2approve")))]) stdout expected_query_resolution: #And([#Operation("btype", #eq(#Text("2approve")))]) ✓ get_txs() with btype = '2approve' stdout actual_query_resolution: #Or([#Operation("btype", #eq(#Text("1burn"))), #Operation("btype", #eq(#Text("1xfer")))]) stdout expected_query_resolution: #Or([#Operation("btype", #eq(#Text("1burn"))), #Operation("btype", #eq(#Text("1xfer")))]) ✓ get_txs() with btype = '1burn' or '1xfer' stdout actual_query_resolution: #And([#Operation("tx.to.owner", #eq(#Principal(dnnxm-gse3f-chys6-hdjy5-m33kt-ds7s6-25pv2-gm2cx-rf5s5-udp62-e6o)))]) stdout expected_query_resolution: #And([#Operation("tx.to.owner", #eq(#Principal(dnnxm-gse3f-chys6-hdjy5-m33kt-ds7s6-25pv2-gm2cx-rf5s5-udp62-e6o)))]) ✓ get_txs() with the first principal as the recipient stdout actual_query_resolution: #And([#Operation("tx.from.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q)))]) stdout expected_query_resolution: #And([#Operation("tx.from.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q)))]) ✓ get_txs() with the 2nd principal as the sender stdout actual_query_resolution: #And([#Operation("tx.spender.owner", #eq(#Principal(dxalh-crfl2-23xdy-qafp5-4jvwm-2wrjc-vui65-mbniy-2ich2-ck2pc-vg4)))]) stdout expected_query_resolution: #And([#Operation("tx.spender.owner", #eq(#Principal(dxalh-crfl2-23xdy-qafp5-4jvwm-2wrjc-vui65-mbniy-2ich2-ck2pc-vg4)))]) ✓ get_txs() with the 3rd principal as the spender stdout actual_query_resolution: #Or([#Operation("tx.to.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.from.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.spender.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q)))]) stdout expected_query_resolution: #Or([#Operation("tx.to.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.from.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.spender.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q)))]) ✓ get_txs() involving the 2nd principal, sort by ('ts', #Ascending) stdout actual_query_resolution: #And([#Operation("tx.amt", #gte(#Nat(2))), #Operation("tx.amt", #lte(#Nat(49)))]) stdout expected_query_resolution: #And([#Operation("tx.amt", #gte(#Nat(2))), #Operation("tx.amt", #lte(#Nat(49)))]) ✓ get_txs() with 'amt' less than 50 and greater than 1 stdout actual_query_resolution: #Or([#Operation("tx.to.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.to.owner", #eq(#Principal(dnnxm-gse3f-chys6-hdjy5-m33kt-ds7s6-25pv2-gm2cx-rf5s5-udp62-e6o))), #Operation("tx.from.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.from.owner", #eq(#Principal(dnnxm-gse3f-chys6-hdjy5-m33kt-ds7s6-25pv2-gm2cx-rf5s5-udp62-e6o))), #Operation("tx.spender.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.spender.owner", #eq(#Principal(dnnxm-gse3f-chys6-hdjy5-m33kt-ds7s6-25pv2-gm2cx-rf5s5-udp62-e6o)))]) stdout expected_query_resolution: #Or([#Operation("tx.to.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.to.owner", #eq(#Principal(dnnxm-gse3f-chys6-hdjy5-m33kt-ds7s6-25pv2-gm2cx-rf5s5-udp62-e6o))), #Operation("tx.from.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.from.owner", #eq(#Principal(dnnxm-gse3f-chys6-hdjy5-m33kt-ds7s6-25pv2-gm2cx-rf5s5-udp62-e6o))), #Operation("tx.spender.owner", #eq(#Principal(xhyiv-f77ls-apxvy-ohl7i-unoi6-awinz-mr74f-7hc7r-7ccr5-dqpk6-u4q))), #Operation("tx.spender.owner", #eq(#Principal(dnnxm-gse3f-chys6-hdjy5-m33kt-ds7s6-25pv2-gm2cx-rf5s5-udp62-e6o)))]) ✓ get_txs() involving the first 2 principals stdout actual_query_resolution: #And([#Operation("btype", #eq(#Text("1xfer"))), #Operation("tx.amt", #gte(#Nat(11)))]) stdout expected_query_resolution: #And([#Operation("btype", #eq(#Text("1xfer"))), #Operation("tx.amt", #gte(#Nat(11)))]) ✓ get_txs() with 'btype' = '1xfer' and 'amt' > 10 • testing txs db with pagination ✓ get_txs() with btype = '1mint' ✓ get_txs() with tx.amt > 355 ✓ get_txs() with btype = '1xfer' ✓ get_txs() with btype = '2approve' ✓ get_txs() with btype = '1burn' or '1xfer' ✓ get_txs() with the first principal as the recipient ✓ get_txs() with the 2nd principal as the sender ✓ get_txs() with the 3rd principal as the spender ✓ get_txs() involving the 2nd principal, sort by ('ts', #Ascending) ✓ get_txs() with 'amt' less than 50 and greater than 1 ✓ get_txs() involving the first 2 principals ✓ get_txs() with 'btype' = '1xfer' and 'amt' > 10 • testing txs db with sorting ✓ get_txs() with btype = '1mint' ✓ get_txs() with tx.amt > 355 ✓ get_txs() with btype = '1xfer' ✓ get_txs() with btype = '2approve' ✓ get_txs() with btype = '1burn' or '1xfer' ✓ get_txs() with the first principal as the recipient ✓ get_txs() with the 2nd principal as the sender ✓ get_txs() with the 3rd principal as the spender ✓ get_txs() involving the 2nd principal, sort by ('ts', #Ascending) ✓ get_txs() with 'amt' less than 50 and greater than 1 ✓ get_txs() involving the first 2 principals ✓ get_txs() with 'btype' = '1xfer' and 'amt' > 10 • testing txs db with sorting and pagination ✓ get_txs() with btype = '1mint' ✓ get_txs() with tx.amt > 355 ✓ get_txs() with btype = '1xfer' ✓ get_txs() with btype = '2approve' ✓ get_txs() with btype = '1burn' or '1xfer' ✓ get_txs() with the first principal as the recipient ✓ get_txs() with the 2nd principal as the sender ✓ get_txs() with the 3rd principal as the spender ✓ get_txs() involving the 2nd principal, sort by ('ts', #Ascending) ✓ get_txs() with 'amt' less than 50 and greater than 1 ✓ get_txs() involving the first 2 principals ✓ get_txs() with 'btype' = '1xfer' and 'amt' > 10 PASS ================================================== Tests passed Done in 25.70s, passed 51 I'm not sure how to fix this, you may try reinstalling mops with clearing cache:
|
I tried your suggestion to reinstall I seem to have missed some information from the error message in the previous post.
|
I see it's just a file with all errors, but the thrown one is How long does it take to run manually?
|
It's pretty fast, takes about 3s to print out the server message. While the replica tests take about 45s |
Please try |
Hey @ZenVoich,
I'm trying to run some tests using the
pocket-ic
but i keep running into this issue.I've also tried running the tests using
--replica dfx
but it returns a similar errorThis is only an issue when i run the tests locally. It works just fine when it's deployed as a github actions job.
Do you think it might be an issue with my device or configurations?
I use an M1 Macbook running Sequoia 15.1 MacOs.
Here's a link to the tests and the mops command:
mops test --mode replica --replica pocket-ic .replica
.Mops version
The text was updated successfully, but these errors were encountered: