Skip to content

Commit

Permalink
green run fixes for create allocation tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yash10019coder committed Sep 1, 2024
1 parent c810d1c commit e15c560
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ func TestCreateEnterpriseAllocation(testSetup *testing.T) {
output, err = createNewEnterpriseAllocationWithoutRetry(t, configPath, utils.CreateParams(options))
require.NotNil(t, err, strings.Join(output, "\n"))
require.True(t, len(output) > 0, "expected output length be at least 1")
require.Contains(t, output[0], "blobbers provided are not enough to honor the allocation")
require.Contains(t, output[0], "blobbers provided are not enough to honour the allocation")

Check failure on line 567 in tests/tokenomics_tests/enterprise_blobber_create_allocation_test.go

View workflow job for this annotation

GitHub Actions / lint

`honour` is a misspelling of `honor` (misspell)
})

t.Run("Create enterprise allocation with too large data (Greater than the number of blobbers) Should Fail", func(t *test.SystemTest) {
Expand All @@ -581,7 +581,7 @@ func TestCreateEnterpriseAllocation(testSetup *testing.T) {
output, err = createNewEnterpriseAllocationWithoutRetry(t, configPath, utils.CreateParams(options))
require.NotNil(t, err, strings.Join(output, "\n"))
require.True(t, len(output) > 0, "expected output length be at least 1")
require.Contains(t, output[0], "blobbers provided are not enough to honor the allocation")
require.Contains(t, output[0], "blobbers provided are not enough to honour the allocation")

Check failure on line 584 in tests/tokenomics_tests/enterprise_blobber_create_allocation_test.go

View workflow job for this annotation

GitHub Actions / lint

`honour` is a misspelling of `honor` (misspell)
})

t.Run("Create enterprise allocation with too large data and parity (Greater than the number of blobbers) Should Fail", func(t *test.SystemTest) {
Expand All @@ -598,7 +598,7 @@ func TestCreateEnterpriseAllocation(testSetup *testing.T) {
output, err = createNewEnterpriseAllocationWithoutRetry(t, configPath, utils.CreateParams(options))
require.NotNil(t, err, strings.Join(output, "\n"))
require.True(t, len(output) > 0, "expected output length be at least 1")
require.Contains(t, output[0], "blobbers provided are not enough to honor the allocation")
require.Contains(t, output[0], "blobbers provided are not enough to honour the allocation")

Check failure on line 601 in tests/tokenomics_tests/enterprise_blobber_create_allocation_test.go

View workflow job for this annotation

GitHub Actions / lint

`honour` is a misspelling of `honor` (misspell)
})

t.Run("Create enterprise allocation with read price range 0-0 Should Fail", func(t *test.SystemTest) {
Expand Down Expand Up @@ -633,7 +633,7 @@ func TestCreateEnterpriseAllocation(testSetup *testing.T) {
output, err = createNewEnterpriseAllocationWithoutRetry(t, configPath, utils.CreateParams(options))
require.NotNil(t, err, strings.Join(output, "\n"))
require.True(t, len(output) > 0, "expected output length be at least 1")
require.Equal(t, "Error creating allocation: allocation_creation_failed: invalid request: insufficient allocation size", output[0], strings.Join(output, "\n"))
require.Equal(t, "Error creating allocation: smartcontract: allocation_creation_failed: invalid request: insufficient allocation size", output[0], strings.Join(output, "\n"))
})

t.Run("Create enterprise allocation with no parameter (missing lock) Should Fail", func(t *test.SystemTest) {
Expand Down

0 comments on commit e15c560

Please sign in to comment.