@cryptotaxi247 / kubo / commits / f6d507b20

go fmt

License: MIT Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>

Dirk McCormick committed Jan 21, 2018 at 17:48 UTC f6d507b203e25093c892cb306144730cec032bf8
1 file changed -5
namesys/ipns_validate_test.go
-5
@@ -45,7 +45,6 @@ func TestValidation(t *testing.T) {
45 t.Fatal(err)
46 }
47
48 -
48 // Create IPNS record path with a different key
49 _, ipnsWrongAuthor := genKeys(t, r)
50 wrongAuthorRec, err := record.MakePutRecord(priv, ipnsWrongAuthor, val, true)
@@ -59,7 +58,6 @@ func TestValidation(t *testing.T) {
58 t.Fatal("ValidateIpnsRecord should have returned ErrInvalidAuthor")
59 }
60
62 -
61 // Create IPNS record path with extra path components after author
62 extraPath := ipnsPath + "/some/path"
63 extraPathRec, err := record.MakePutRecord(priv, extraPath, val, true)
@@ -73,7 +71,6 @@ func TestValidation(t *testing.T) {
71 t.Fatal("ValidateIpnsRecord should have returned ErrInvalidAuthor")
72 }
73
76 -
74 // Create unsigned IPNS record
75 unsignedRec, err := record.MakePutRecord(priv, ipnsPath, val, false)
76 if err != nil {
@@ -86,7 +83,6 @@ func TestValidation(t *testing.T) {
83 t.Fatal("ValidateIpnsRecord should have returned ErrInvalidAuthor")
84 }
85
89 -
86 // Create unsigned IPNS record with no author
87 unsignedRecNoAuthor, err := record.MakePutRecord(priv, ipnsPath, val, false)
88 if err != nil {
@@ -101,7 +97,6 @@ func TestValidation(t *testing.T) {
97 t.Fatal("ValidateIpnsRecord should have returned ErrInvalidAuthor")
98 }
99
104 -
100 // Create expired entry
101 expiredEntry, err := CreateRoutingEntryData(priv, path.Path("foo"), 1, ts.Add(-1*time.Hour))
102 if err != nil {