@@ -164,6 +164,7 @@ func init() {
164164}
165165
166166var (
167+ adminAddr = consts.ADMIN
167168 admin = pusers.AddressOrName(consts.ADMIN)
168169 alice = pusers.AddressOrName(testutils.TestAddress("alice"))
169170 pool = pusers.AddressOrName(consts.POOL_ADDR)
@@ -493,6 +494,7 @@ func burnAllNFT(t *testing.T) {
493494}
494495
495496func TestBeforeResetObject(t *testing.T) {
497+ t.Skip("can not be run with other tests")
496498 // make actual data to test resetting not only position's state but also pool's state
497499 std.TestSetRealm(adminRealm)
498500
@@ -540,3 +542,24 @@ func TestBeforeResetObject(t *testing.T) {
540542// burnAllNFT(t)
541543// uassert.Equal(t, gnft.TotalSupply(), uint64(0), "gnft total supply should be 0")
542544// }
545+
546+ func deletePoolTier(t *testing.T, poolPath string) {
547+ poolTier.changeTier(uint64(std.GetHeight()), poolPath, 0)
548+ }
549+
550+ func addPoolTier(t *testing.T, poolPath string, tier uint64) {
551+ poolTier.changeTier(uint64(std.GetHeight()), poolPath, tier)
552+ pools.GetOrCreate(poolPath)
553+ }
554+
555+ func changeWarmup(t *testing.T, index int, blockDuration int64) {
556+ modifyWarmup(index, blockDuration)
557+ }
558+
559+ func getNumPoolTiers(t *testing.T) (uint64, uint64, uint64) {
560+ tier1Num := poolTier.count[1].tree.Size()
561+ tier2Num := poolTier.count[2].tree.Size()
562+ tier3Num := poolTier.count[3].tree.Size()
563+
564+ return tier1Num, tier2Num, tier3Num
565+ }
0 commit comments