@@ -33,10 +33,9 @@ import (
33
33
swarmhttp "github.com/ethereum/go-ethereum/swarm/api/http"
34
34
"github.com/ethereum/go-ethereum/swarm/multihash"
35
35
"github.com/ethereum/go-ethereum/swarm/storage/feed"
36
- "github.com/ethereum/go-ethereum/swarm/testutil"
37
36
)
38
37
39
- func serverFunc (api * api.API ) testutil .TestServer {
38
+ func serverFunc (api * api.API ) swarmhttp .TestServer {
40
39
return swarmhttp .NewServer (api , "" )
41
40
}
42
41
@@ -49,7 +48,7 @@ func TestClientUploadDownloadRawEncrypted(t *testing.T) {
49
48
}
50
49
51
50
func testClientUploadDownloadRaw (toEncrypt bool , t * testing.T ) {
52
- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
51
+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
53
52
defer srv .Close ()
54
53
55
54
client := NewClient (srv .URL )
@@ -90,7 +89,7 @@ func TestClientUploadDownloadFilesEncrypted(t *testing.T) {
90
89
}
91
90
92
91
func testClientUploadDownloadFiles (toEncrypt bool , t * testing.T ) {
93
- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
92
+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
94
93
defer srv .Close ()
95
94
96
95
client := NewClient (srv .URL )
@@ -188,7 +187,7 @@ func newTestDirectory(t *testing.T) string {
188
187
// TestClientUploadDownloadDirectory tests uploading and downloading a
189
188
// directory of files to a swarm manifest
190
189
func TestClientUploadDownloadDirectory (t * testing.T ) {
191
- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
190
+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
192
191
defer srv .Close ()
193
192
194
193
dir := newTestDirectory (t )
@@ -254,7 +253,7 @@ func TestClientFileListEncrypted(t *testing.T) {
254
253
}
255
254
256
255
func testClientFileList (toEncrypt bool , t * testing.T ) {
257
- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
256
+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
258
257
defer srv .Close ()
259
258
260
259
dir := newTestDirectory (t )
@@ -312,7 +311,7 @@ func testClientFileList(toEncrypt bool, t *testing.T) {
312
311
// TestClientMultipartUpload tests uploading files to swarm using a multipart
313
312
// upload
314
313
func TestClientMultipartUpload (t * testing.T ) {
315
- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
314
+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
316
315
defer srv .Close ()
317
316
318
317
// define an uploader which uploads testDirFiles with some data
@@ -378,7 +377,7 @@ func TestClientCreateFeedMultihash(t *testing.T) {
378
377
379
378
signer , _ := newTestSigner ()
380
379
381
- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
380
+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
382
381
client := NewClient (srv .URL )
383
382
defer srv .Close ()
384
383
@@ -440,7 +439,7 @@ func TestClientCreateUpdateFeed(t *testing.T) {
440
439
441
440
signer , _ := newTestSigner ()
442
441
443
- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
442
+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
444
443
client := NewClient (srv .URL )
445
444
defer srv .Close ()
446
445
0 commit comments