@cryptotaxi247 / kubo / commits / 91c919a47

Fix test

License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>

Hector Sanjuan committed Oct 5, 2018 at 02:58 UTC 91c919a47e5d7c9bf2ac066f07035a0648b788ae
1 file changed +4 -3
core/corehttp/proxy_test.go
+4 -3
@@ -1,10 +1,11 @@
1 package corehttp
2
3 import (
4 - "github.com/ipfs/go-ipfs/thirdparty/assert"
4 "net/http"
5 "strings"
6 "testing"
7 +
8 + "github.com/ipfs/go-ipfs/thirdparty/assert"
9 )
10
11 func TestParseRequest(t *testing.T) {
@@ -15,9 +16,9 @@ func TestParseRequest(t *testing.T) {
16 if err != nil {
17 t.Error(err)
18 }
18 - assert.True(parsed.httpPath == "path/to/index.txt", t, "proxy request path")
19 + assert.True(parsed.httpPath == "/path/to/index.txt", t, "proxy request path")
20 assert.True(parsed.name == "test-name", t, "proxy request name")
20 - assert.True(parsed.target.Pretty() == "QmT8JtU54XSmC38xSb1XHFSMm775VuTeajg7LWWWTAwzxT", t, "proxy request peer-id")
21 + assert.True(parsed.target == "QmT8JtU54XSmC38xSb1XHFSMm775VuTeajg7LWWWTAwzxT", t, "proxy request peer-id")
22 }
23
24 func TestParseRequestInvalidPath(t *testing.T) {