Skip to content

Commit 1f78048

Browse files
committed
replace egosdk
1 parent 3151a2b commit 1f78048

File tree

9 files changed

+172
-169
lines changed

9 files changed

+172
-169
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.23.1
66

77
require (
88
github.com/0chain/errors v1.0.3
9-
github.com/0chain/gosdk v1.19.11-0.20250318122237-b783aadb36b1
9+
github.com/0chain/gosdk v1.19.11-0.20250318142516-45e2eb64f374
1010
github.com/0chain/gosdk_common v0.0.0-20250318142402-b7bd1ebd4f66
1111
github.com/go-resty/resty/v2 v2.7.0
1212
github.com/herumi/bls-go-binary v1.31.0
@@ -115,6 +115,6 @@ require (
115115
)
116116

117117
// replace github.com/herumi/bls-go-binary => github.com/herumi/bls-go-binary v1.28.2
118-
replace github.com/0chain/gosdk => github.com/0chain/egosdk v1.19.1-0.20250318134101-026d9c8701a0
118+
// replace github.com/0chain/gosdk => github.com/0chain/egosdk v1.19.1-0.20250318134101-026d9c8701a0
119119

120120
// replace github.com/0chain/gosdk => ../gosdk

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f
3838
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
3939
github.com/0chain/common v1.18.3 h1:42dYOv2KyMTSanuS67iDtfv+ErbSRqR8NJ3MG72MwaI=
4040
github.com/0chain/common v1.18.3/go.mod h1:Lapu2Tj7z5Sm4r+X141e7vsz4NDODTEypeElYAP3iSw=
41-
github.com/0chain/egosdk v1.19.1-0.20250318134101-026d9c8701a0 h1:igxYG064JQ/eFcFyQ9rTp4gNtYgN+uzINZFNtI6SncA=
42-
github.com/0chain/egosdk v1.19.1-0.20250318134101-026d9c8701a0/go.mod h1:QeTmIqfoxuQ6TRlcxMknPRRDr35l+U9uzLCRyenrIqs=
4341
github.com/0chain/errors v1.0.3 h1:QQZPFxTfnMcRdt32DXbzRQIfGWmBsKoEdszKQDb0rRM=
4442
github.com/0chain/errors v1.0.3/go.mod h1:xymD6nVgrbgttWwkpSCfLLEJbFO6iHGQwk/yeSuYkIc=
43+
github.com/0chain/gosdk v1.19.11-0.20250318142516-45e2eb64f374 h1:go5Xz5hh7eQMUM1wCDNT0QNwIHHmOvcUU/egJDn4nsw=
44+
github.com/0chain/gosdk v1.19.11-0.20250318142516-45e2eb64f374/go.mod h1:0U6M/kkniAGyeZB6NsAofCmPwUWh7qdBeVgQ0csTRMw=
4545
github.com/0chain/gosdk_common v0.0.0-20250318142402-b7bd1ebd4f66 h1:lDzI8ZW/mdqfT0ySRnNke2c5KoqVh+FNXY8536yn0DA=
4646
github.com/0chain/gosdk_common v0.0.0-20250318142402-b7bd1ebd4f66/go.mod h1:+FBmkG4JocGmD+8gyE4kyst15p+3xm3Nf+nrg4cu5V4=
4747
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=

tests/cli_tests/config/cli_tests_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
default_test_case_timeout: 3m
1+
default_test_case_timeout: 5m
22
s3_access_key:
33
s3_secret_key:
44
s3_bucket_name:

tests/cli_tests/config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
block_worker: https://dev-st.devnet-0chain.net/dns
1+
block_worker: https://dev-st.devnet-0chain.net/dns/
22
confirmation_chain_length: 3
33
ethereum_node_url: "https://rpc.tenderly.co/fork/5b7ffac9-50cc-4169-b0ca-6fd203d26ef6"
44
min_confirmation: 50

tests/cli_tests/config2/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
block_worker: https://dev.zus.network/dns
1+
block_worker: https://dev-st.devnet-0chain.net/dns/
22
confirmation_chain_length: 3
33
ethereum_node_url: https://rpc.tenderly.co/fork/05077a9d-3973-4409-a3bf-eee719ca2806
44
min_confirmation: 50

tests/cli_tests/zboxcli_cancel_allocation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestCancelAllocation(testSetup *testing.T) {
100100
func cancelAllocation(t *test.SystemTest, cliConfigFilename, allocationID string, retry bool) ([]string, error) {
101101
t.Logf("Canceling allocation...")
102102
cmd := fmt.Sprintf(
103-
"./zbox alloc-cancel --allocation %s --silent "+
103+
"./zbox alloc-cancel --allocation %s"+
104104
"--wallet %s --configDir ./config --config %s",
105105
allocationID,
106106
escapedTestName(t)+"_wallet.json",

tests/cli_tests/zboxcli_create_allocation_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,7 @@ func createNewAllocationWithoutRetry(t *test.SystemTest, cliConfigFilename, para
486486
escapedTestName(t)+"_allocation.txt"))
487487
}
488488

489-
func createAllocationTestTeardown(t *test.SystemTest, allocationID string) {
490-
t.Cleanup(func() {
491-
_, _ = cancelAllocation(t, configPath, allocationID, false)
492-
})
489+
func createAllocationTestTeardown(t *test.SystemTest, allocationID string) ([]string, error) {
490+
output, err := cancelAllocation(t, configPath, allocationID, false)
491+
return output, err
493492
}

0 commit comments

Comments
 (0)