uplink: avoid cyclic dependency to storj.io
This helps to simplify splitting and running tests. Change-Id: I4aaf077df7fd6bd6f14f10cb902850883349eaf5
This commit is contained in:
parent
00c0c51b1c
commit
cf2128d3b9
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2019 Storj Labs, Inc.
|
||||
// See LICENSE for copying information.
|
||||
|
||||
package kvmetainfo_test
|
||||
package testuplink_test
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2019 Storj Labs, Inc.
|
||||
// Copyright (C) 2020 Storj Labs, Inc.
|
||||
// See LICENSE for copying information.
|
||||
|
||||
package ecclient_test
|
||||
package testuplink_test
|
||||
|
||||
import (
|
||||
"bytes"
|
5
private/testuplink/doc.go
Normal file
5
private/testuplink/doc.go
Normal file
@ -0,0 +1,5 @@
|
||||
// Copyright (C) 2020 Storj Labs, Inc.
|
||||
// See LICENSE for copying information.
|
||||
|
||||
// Package testuplink contains integration tests for storj.io/uplink
|
||||
package testuplink
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2019 Storj Labs, Inc.
|
||||
// See LICENSE for copying information.
|
||||
|
||||
package kvmetainfo_test
|
||||
package testuplink_test
|
||||
|
||||
import (
|
||||
"context"
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"storj.io/common/pb"
|
||||
"storj.io/storj/private/teststorj"
|
||||
"storj.io/common/testrand"
|
||||
)
|
||||
|
||||
func TestUnique(t *testing.T) {
|
||||
@ -18,7 +18,7 @@ func TestUnique(t *testing.T) {
|
||||
for i := 0; i < len(limits); i++ {
|
||||
limits[i] = &pb.AddressedOrderLimit{
|
||||
Limit: &pb.OrderLimit{
|
||||
StorageNodeId: teststorj.NodeIDFromString(fmt.Sprintf("node-%d", i)),
|
||||
StorageNodeId: testrand.NodeID(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user