Skip to content

Commit 12df606

Browse files
refactor(replicas): move TestSigner to replicas.go and remove export_test.go
1 parent db0593d commit 12df606

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

cmd/bee/cmd/db.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131

3232
const (
3333
optionNameValidation = "validate"
34-
optionNameValidationPin = "validate-pin"
3534
optionNameCollectionPin = "pin"
3635
optionNameOutputLocation = "output"
3736
)

pkg/replicas/export_test.go

Lines changed: 0 additions & 9 deletions
This file was deleted.

pkg/replicas/getter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (tg *testGetter) Get(ctx context.Context, addr swarm.Address) (ch swarm.Chu
6767
if ch != nil {
6868
return ch, nil
6969
}
70-
return soc.New(addr.Bytes(), tg.ch).Sign(replicas.Signer)
70+
return soc.New(addr.Bytes(), tg.ch).Sign(replicas.TestSigner)
7171
}
7272

7373
func newTestGetter(ch swarm.Chunk, firstFound int, errf func(int) chan struct{}) *testGetter {

pkg/replicas/replicas.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var (
2323
RetryInterval = 300 * time.Millisecond
2424
privKey, _ = crypto.DecodeSecp256k1PrivateKey(append([]byte{1}, make([]byte, 31)...))
2525
signer = crypto.NewDefaultSigner(privKey)
26+
TestSigner = signer
2627
)
2728

2829
// replicator running the find for replicas

0 commit comments

Comments
 (0)