@@ -33,10 +33,9 @@ import (
3333 swarmhttp "github.com/ethereum/go-ethereum/swarm/api/http"
3434 "github.com/ethereum/go-ethereum/swarm/multihash"
3535 "github.com/ethereum/go-ethereum/swarm/storage/feed"
36- "github.com/ethereum/go-ethereum/swarm/testutil"
3736)
3837
39- func serverFunc (api * api.API ) testutil .TestServer {
38+ func serverFunc (api * api.API ) swarmhttp .TestServer {
4039 return swarmhttp .NewServer (api , "" )
4140}
4241
@@ -49,7 +48,7 @@ func TestClientUploadDownloadRawEncrypted(t *testing.T) {
4948}
5049
5150func testClientUploadDownloadRaw (toEncrypt bool , t * testing.T ) {
52- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
51+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
5352 defer srv .Close ()
5453
5554 client := NewClient (srv .URL )
@@ -90,7 +89,7 @@ func TestClientUploadDownloadFilesEncrypted(t *testing.T) {
9089}
9190
9291func testClientUploadDownloadFiles (toEncrypt bool , t * testing.T ) {
93- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
92+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
9493 defer srv .Close ()
9594
9695 client := NewClient (srv .URL )
@@ -188,7 +187,7 @@ func newTestDirectory(t *testing.T) string {
188187// TestClientUploadDownloadDirectory tests uploading and downloading a
189188// directory of files to a swarm manifest
190189func TestClientUploadDownloadDirectory (t * testing.T ) {
191- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
190+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
192191 defer srv .Close ()
193192
194193 dir := newTestDirectory (t )
@@ -254,7 +253,7 @@ func TestClientFileListEncrypted(t *testing.T) {
254253}
255254
256255func testClientFileList (toEncrypt bool , t * testing.T ) {
257- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
256+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
258257 defer srv .Close ()
259258
260259 dir := newTestDirectory (t )
@@ -312,7 +311,7 @@ func testClientFileList(toEncrypt bool, t *testing.T) {
312311// TestClientMultipartUpload tests uploading files to swarm using a multipart
313312// upload
314313func TestClientMultipartUpload (t * testing.T ) {
315- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
314+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
316315 defer srv .Close ()
317316
318317 // define an uploader which uploads testDirFiles with some data
@@ -378,7 +377,7 @@ func TestClientCreateFeedMultihash(t *testing.T) {
378377
379378 signer , _ := newTestSigner ()
380379
381- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
380+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
382381 client := NewClient (srv .URL )
383382 defer srv .Close ()
384383
@@ -440,7 +439,7 @@ func TestClientCreateUpdateFeed(t *testing.T) {
440439
441440 signer , _ := newTestSigner ()
442441
443- srv := testutil .NewTestSwarmServer (t , serverFunc , nil )
442+ srv := swarmhttp .NewTestSwarmServer (t , serverFunc , nil )
444443 client := NewClient (srv .URL )
445444 defer srv .Close ()
446445
0 commit comments