euler-xyz / euler-contracts Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
euler-contracts/contracts/BaseModule.sol
Line 42 in cd3036e
This test failed today in 968204:
309 passing (9m)
1 failing
1) EUL distributor
invalid claim inputs:
AssertionError: expected 'incorrect data length (argument=null,…' to include 'proof invalid/expired'
at Object.cb (test/eulDistributor.js:266:42)
at TestSet._runAction (test/lib/eTestLib.js:1051:13)
at TestSet._runTest (test/lib/eTestLib.js:904:26)
at Context.<anonymous> (test/lib/eTestLib.js:878:21)
I have only seen it fail once so far and after rerunning (968410) it passed.
Currently, there's no method on the Simple Lens to fetch a user's EUL balance. I believe its possible to get this information from the EulStakes contract, however, this is not explicitly advertised in the docs with examples.
Is it possible to add a simple function on the lens contract for non-technical users to query their EUL balance easily?
Recently, this test started failing:
338 passing (7m)
1 failing
1) staking
stake permit:
AssertionError: expected false to equal true
+ expected - actual
-false
+true
at Object.cb (test/eulStakes.js:522:55)
at TestSet._runAction (test/lib/eTestLib.js:1191:13)
at TestSet._runTest (test/lib/eTestLib.js:1044:26)
at Context.<anonymous> (test/lib/eTestLib.js:1016:21)
1068599 and 1068676 are two examples of the problem in CI, but it is also reproduced in a local run:
git clone https://github.com/euler-xyz/euler-contracts
cd euler-contracts/
npm init
npm --save-dev install hardhat
npx hardhat test test/eulStakes.js
The problem seems to be related to 4 occurrences of et.expect(result.domainSeparatorMatch).to.equal(true);
in file eulStake.js
.
When true
is changed to false
, the test is successful.
Here's another flaky test:
298 passing (10m)
1 failing
1) uniswap3 twap
integration with uniswap3 core:
Error: Timeout of 20000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/tmp/ext-test-Euler-X7BOE6/ext/test/uniswap-integration.js)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
I've seen several instances of it in the last 3 days: 966585, 966481, 965865, 965823, 965567.
Does not seem to be a race condition like in #93. Or at least TEST_SLEEP
does not make it easily reproducible - I've only seen it in CI so far and not in local runs.
I'm seeing some tests fail randomly from time to time. It seems that they might not be deterministic enough or there could be a bug:
297 passing (11m)
1 failing
1) reserves
reserves:
Error: equals failure: 0.000000013484437479 was not 0.000000015 +/- 0.000000001
at equals (test/lib/eTestLib.js:1150:19)
at TestSet._runTest (test/lib/eTestLib.js:912:17)
at Context.<anonymous> (test/lib/eTestLib.js:851:21
297 passing (7m)
1 failing
1) transfer dTokens
lower decimals:
Error: equals failure: 0.000000008000000102 was not 0.000000008 +/- 0.0000000000000001
at equals (test/lib/eTestLib.js:1150:19)
at TestSet._runTest (test/lib/eTestLib.js:912:17)
at Context.<anonymous> (test/lib/eTestLib.js:851:21)
I'm actually compiling contracts with the latest compiler (the whole point for me is to test the compiler) and adjusting optimizer settings, which could theoretically be the cause but most of the time all tests pass so I think that's unlikely. I think that a problem is probably in the tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.