Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
62746174
Unverified
Commit
62746174
authored
2 years ago
by
Dev Ojha
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
CI: Delete failing step (#3124)
* Delete failing step * Fix int overflow in test logic
parent
df9102ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/test.yml
+0
-20
.github/workflows/test.yml
x/gamm/pool-models/stableswap/amm_test.go
+2
-3
x/gamm/pool-models/stableswap/amm_test.go
with
2 additions
and
23 deletions
+2
-23
.github/workflows/test.yml
+
0
-
20
View file @
62746174
...
...
@@ -12,27 +12,7 @@ on:
workflow_dispatch
:
jobs
:
should_run_go_test
:
runs-on
:
ubuntu-latest
outputs
:
should_skip
:
${{ steps.skip_check.outputs.should_skip }}
steps
:
-
id
:
skip_check
uses
:
fkirc/skip-duplicate-actions@master
with
:
cancel_others
:
"
true"
# workflow-runs from outdated commits will be cancelled.
concurrent_skipping
:
"
same_content"
skip_after_successful_duplicate
:
"
true"
paths
:
'
["**/*.go",
"**/*.mod",
"**/*.sum"]'
do_not_skip
:
'
["pull_request",
"workflow_dispatch",
"schedule"]'
-
name
:
Skipping test
run
:
echo Should I skip tests? ${{ steps.skip_check.outputs.should_skip }}
go
:
needs
:
should_run_go_test
if
:
${{ needs.should_run_test.outputs.should_skip != 'true' }}
runs-on
:
ubuntu-latest
steps
:
-
...
...
This diff is collapsed.
Click to expand it.
x/gamm/pool-models/stableswap/amm_test.go
+
2
-
3
View file @
62746174
...
...
@@ -483,13 +483,12 @@ func TestCFMMInvariantMultiAssetsDirect(t *testing.T) {
t
.
Run
(
name
,
func
(
t
*
testing
.
T
)
{
// system under test
sut
:=
func
()
{
uReserve
:=
calcUReserve
(
test
.
remReserves
)
wSumSquares
:=
calcWSumSquares
(
test
.
remReserves
)
// using multi-asset cfmm
k2
:=
cfmmConstantMulti
(
test
.
xReserve
,
test
.
yReserve
,
uReserve
,
wSumSquares
)
k2
:=
cfmmConstantMulti
NoV
(
test
.
xReserve
,
test
.
yReserve
,
wSumSquares
)
xOut2
:=
solveCFMMMultiDirect
(
test
.
xReserve
,
test
.
yReserve
,
wSumSquares
,
test
.
yIn
)
k3
:=
cfmmConstantMulti
(
test
.
xReserve
.
Sub
(
xOut2
),
test
.
yReserve
.
Add
(
test
.
yIn
),
uReserve
,
wSumSquares
)
k3
:=
cfmmConstantMulti
NoV
(
test
.
xReserve
.
Sub
(
xOut2
),
test
.
yReserve
.
Add
(
test
.
yIn
),
wSumSquares
)
osmomath
.
DecApproxEq
(
t
,
k2
,
k3
,
kErrTolerance
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets