Skip to content

Commit

Permalink
test: remove hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Dec 10, 2024
1 parent 10d1ae9 commit 40f9b72
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pool/pool_manager_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -118,33 +118,33 @@ func TestCreatePool(t *testing.T) {
}{
{
name: "success - normal token pair",
token0Path: "gno.land/r/onbloc/bar",
token1Path: "gno.land/r/onbloc/foo",
token0Path: barPath,
token1Path: GetPoolFromPoolPath,
fee: 3000,
sqrtPrice: "4295128740",
},
{
name: "fail - same tokens",
token0Path: "gno.land/r/onbloc/bar",
token1Path: "gno.land/r/onbloc/bar",
token0Path: barPath,
token1Path: barPath,
fee: 3000,
sqrtPrice: "4295128740",
shouldPanic: true,
panicMsg: "[GNOSWAP-POOL-011] same token used in single pool || pool_manager.gno__CreatePool() || expected token0Path(gno.land/r/onbloc/bar) != token1Path(gno.land/r/onbloc/bar",
},
{
name: "fail - tokens not in order",
token0Path: "gno.land/r/onbloc/foo",
token1Path: "gno.land/r/onbloc/bar",
token0Path: GetPoolFromPoolPath,
token1Path: barPath,
fee: 3000,
sqrtPrice: "4295128740",
shouldPanic: true,
panicMsg: "[GNOSWAP-POOL-012] tokens must be in lexicographical order || pool_manager.gno__CreatePool() || expected token0Path(gno.land/r/onbloc/foo) < token1Path(gno.land/r/onbloc/bar)",
},
{
name: "fail - pool already exists",
token0Path: "gno.land/r/onbloc/bar",
token1Path: "gno.land/r/onbloc/foo",
token0Path: barPath,
token1Path: GetPoolFromPoolPath,
fee: 3000,
sqrtPrice: "4295128740",
shouldPanic: true,
Expand Down

0 comments on commit 40f9b72

Please sign in to comment.