From 7c5047a5a888dead83e0a56b33e70e9b68353d54 Mon Sep 17 00:00:00 2001 From: clemlak Date: Fri, 1 Sep 2023 18:14:40 +0400 Subject: [PATCH] test: update _createPool func util in uri tests --- test/TestPositionRendererUri.t.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/TestPositionRendererUri.t.sol b/test/TestPositionRendererUri.t.sol index 293462a4..96bf90fb 100644 --- a/test/TestPositionRendererUri.t.sol +++ b/test/TestPositionRendererUri.t.sol @@ -24,7 +24,11 @@ contract TestPositionRendererUri is Setup { public returns (uint64 poolId) { - uint24 pairId = subject().createPair(ctx.asset, ctx.quote); + uint24 pairId = subject().getPairId(ctx.asset, ctx.quote); + + if (pairId == 0) { + pairId = subject().createPair(ctx.asset, ctx.quote); + } (bytes memory strategyData, uint256 initialX, uint256 initialY) = INormalStrategy(subject().DEFAULT_STRATEGY()).getStrategyData(