aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/filesystem_test.go
diff options
context:
space:
mode:
authorElad <theman@elad.im>2019-05-06 02:34:22 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2019-05-10 18:26:52 +0800
commitad6c39012fc761dd02a6b1a7fbfdcf2478abe2a1 (patch)
tree396077f7f33307321110f17bc3a19abe115e5d47 /swarm/api/filesystem_test.go
parent3030893a21b17a0e90ddd0047d0f310fee8335a0 (diff)
downloadgo-tangerine-ad6c39012fc761dd02a6b1a7fbfdcf2478abe2a1.tar
go-tangerine-ad6c39012fc761dd02a6b1a7fbfdcf2478abe2a1.tar.gz
go-tangerine-ad6c39012fc761dd02a6b1a7fbfdcf2478abe2a1.tar.bz2
go-tangerine-ad6c39012fc761dd02a6b1a7fbfdcf2478abe2a1.tar.lz
go-tangerine-ad6c39012fc761dd02a6b1a7fbfdcf2478abe2a1.tar.xz
go-tangerine-ad6c39012fc761dd02a6b1a7fbfdcf2478abe2a1.tar.zst
go-tangerine-ad6c39012fc761dd02a6b1a7fbfdcf2478abe2a1.zip
swarm: push tags integration - request flow
swarm/api: integrate tags to count chunks being split and stored swarm/api/http: integrate tags in middleware for HTTP `POST` calls and assert chunks being calculated and counted correctly swarm: remove deprecated and unused code, add swarm hash to DoneSplit signature, remove calls to the api client from the http package
Diffstat (limited to 'swarm/api/filesystem_test.go')
-rw-r--r--swarm/api/filesystem_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/swarm/api/filesystem_test.go b/swarm/api/filesystem_test.go
index 02f5bff65..b8f37fdd5 100644
--- a/swarm/api/filesystem_test.go
+++ b/swarm/api/filesystem_test.go
@@ -25,13 +25,14 @@ import (
"testing"
"github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/swarm/chunk"
"github.com/ethereum/go-ethereum/swarm/storage"
)
var testDownloadDir, _ = ioutil.TempDir(os.TempDir(), "bzz-test")
func testFileSystem(t *testing.T, f func(*FileSystem, bool)) {
- testAPI(t, func(api *API, toEncrypt bool) {
+ testAPI(t, func(api *API, _ *chunk.Tags, toEncrypt bool) {
f(NewFileSystem(api), toEncrypt)
})
}