Skip to content

Commit

Permalink
fixeS
Browse files Browse the repository at this point in the history
  • Loading branch information
smaulik13 committed Dec 28, 2024
1 parent 3643f92 commit 6d44a41
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/cli_tests/zboxcli_create_allocation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,6 @@ func TestCreateAllocation(testSetup *testing.T) {
createAllocationTestTeardown(t, allocationID)
})

// todo: write a test case to create the allocation with invalid storage version should fail
// tc is not working due to logic mismatch hardcoded version is passed in zxbox cli
t.Run("Create allocation with invalid storage version should fail", func(t *test.SystemTest) {
_ = setupWallet(t, configPath)

options := map[string]interface{}{
"lock": "0.5",
"size": "1024",
"read_price": "0-1",
"write_price": "0-1",
"storage_version": -1,
}

output, err := createNewAllocationWithoutRetry(t, configPath, createParams(options))
require.NotNil(t, err, strings.Join(output, "\n"))

fmt.Println(output)
require.Contains(t, output[len(output)-1], "invalid argument")
})

t.Skip()
t.Run("Create allocation for locking cost equal to the cost calculated should work", func(t *test.SystemTest) {
_ = setupWallet(t, configPath)

Expand Down

0 comments on commit 6d44a41

Please sign in to comment.