Skip to content

Commit

Permalink
test: add test cases for testground version
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Dec 8, 2023
1 parent 496ef23 commit df6bf08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/appconsts/versioned_consts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/stretchr/testify/assert"

"github.com/celestiaorg/celestia-app/pkg/appconsts"
"github.com/celestiaorg/celestia-app/pkg/appconsts/testground"
v1 "github.com/celestiaorg/celestia-app/pkg/appconsts/v1"
v2 "github.com/celestiaorg/celestia-app/pkg/appconsts/v2"
)
Expand All @@ -19,6 +20,7 @@ func TestSubtreeRootThreshold(t *testing.T) {
testCases := []testCase{
{version: v1.Version, want: v1.SubtreeRootThreshold},
{version: v2.Version, want: v2.SubtreeRootThreshold},
{version: testground.Version, want: testground.SubtreeRootThreshold},
}
for _, tc := range testCases {
name := fmt.Sprintf("version %v", tc.version)
Expand All @@ -37,6 +39,7 @@ func TestSquareSizeUpperBound(t *testing.T) {
testCases := []testCase{
{version: v1.Version, want: v1.SquareSizeUpperBound},
{version: v2.Version, want: v2.SquareSizeUpperBound},
{version: testground.Version, want: testground.SquareSizeUpperBound},
}
for _, tc := range testCases {
name := fmt.Sprintf("version %v", tc.version)
Expand Down

0 comments on commit df6bf08

Please sign in to comment.