Skip to content

Commit 4194657

Browse files
committed
fix ut
1 parent dec0efe commit 4194657

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

code/go/0chain.net/blobbercore/allocation/copyfilechange_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"github.com/0chain/blobber/code/go/0chain.net/core/common"
1717
"github.com/0chain/blobber/code/go/0chain.net/core/logging"
1818
"github.com/0chain/gosdk/constants"
19-
"github.com/0chain/gosdk/core/client"
2019
"github.com/0chain/gosdk/core/zcncrypto"
2120
mocket "github.com/selvatico/go-mocket"
2221
"go.uber.org/zap"
@@ -31,14 +30,14 @@ func TestBlobberCore_CopyFile(t *testing.T) {
3130
sch := zcncrypto.NewSignatureScheme("bls0chain")
3231
mnemonic := "expose culture dignity plastic digital couple promote best pool error" +
3332
" brush upgrade correct art become lobster nature moment obtain trial multiply arch miss toe"
34-
_, err := sch.RecoverKeys(mnemonic)
33+
w, err := sch.RecoverKeys(mnemonic)
3534
if err != nil {
3635
t.Fatal(err)
3736
}
3837
ts := time.Now().Add(time.Hour)
3938
alloc := makeTestAllocation(common.Timestamp(ts.Unix()))
4039
alloc.OwnerPublicKey = sch.GetPublicKey()
41-
alloc.OwnerID = client.Wallet().ClientID
40+
alloc.OwnerID = w.ClientID
4241

4342
testCases := []struct {
4443
name string

0 commit comments

Comments
 (0)