@@ -164,6 +164,7 @@ func init() {
164
164
}
165
165
166
166
var (
167
+ adminAddr = consts.ADMIN
167
168
admin = pusers.AddressOrName(consts.ADMIN)
168
169
alice = pusers.AddressOrName(testutils.TestAddress("alice"))
169
170
pool = pusers.AddressOrName(consts.POOL_ADDR)
@@ -493,6 +494,7 @@ func burnAllNFT(t *testing.T) {
493
494
}
494
495
495
496
func TestBeforeResetObject(t *testing.T) {
497
+ t.Skip("can not be run with other tests")
496
498
// make actual data to test resetting not only position's state but also pool's state
497
499
std.TestSetRealm(adminRealm)
498
500
@@ -540,3 +542,24 @@ func TestBeforeResetObject(t *testing.T) {
540
542
// burnAllNFT(t)
541
543
// uassert.Equal(t, gnft.TotalSupply(), uint64(0), "gnft total supply should be 0")
542
544
// }
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