uplink: avoid cyclic dependency to storj.io

This helps to simplify splitting and running tests.

Change-Id: I4aaf077df7fd6bd6f14f10cb902850883349eaf5
This commit is contained in:
Egon Elbre 2020-01-08 14:51:33 +02:00
parent 00c0c51b1c
commit cf2128d3b9
5 changed files with 11 additions and 6 deletions

View File

@ -1,7 +1,7 @@
// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package kvmetainfo_test
package testuplink_test
import (
"context"

View File

@ -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"

View 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

View File

@ -1,7 +1,7 @@
// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package kvmetainfo_test
package testuplink_test
import (
"context"

View File

@ -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(),
},
}
}