mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-08-31 14:26:45 -04:00
remove remote state
This commit is contained in:
+1
-16
@@ -61,7 +61,7 @@ func fetchAndTestDefault(t *testing.T, url string) string {
|
||||
t.Fatal("error title")
|
||||
}
|
||||
|
||||
if !strings.Contains(body0, `<h1>./</h1>`) {
|
||||
if !strings.Contains(body0, `<h1 onclick="return titleClick(event)">./</h1>`) {
|
||||
t.Fatal("error header")
|
||||
}
|
||||
|
||||
@@ -163,21 +163,6 @@ func doTest(t *testing.T, url string, testExtra bool) {
|
||||
t.Fatal("mv rpc errored")
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~
|
||||
// Test where auth header unset, otherwise it'd be apended to the first arg
|
||||
fmt.Println("\r\n~~~~~~~~~~ test history rpc")
|
||||
body0 = postJSON(t, url+"rpc", `{"call":"historySet","args":["a", "123", "skipHash"]}`)
|
||||
body1 = postJSON(t, url+"rpc", `{"call":"historyGet","args":["a"]}`)
|
||||
if body0 != `ok` || body1 != `123` {
|
||||
t.Fatal("error history get/set unhashed")
|
||||
}
|
||||
|
||||
body0 = postJSON(t, url+"rpc", `{"call":"historySet","args":["b", "a", "hash"]}`)
|
||||
body1 = postJSON(t, url+"rpc", `{"call":"historyGet","args":["b"]}`)
|
||||
if body0 != `ok` || body1 != `ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb` {
|
||||
t.Fatal("error history get/set hashed")
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~
|
||||
fmt.Println("\r\n~~~~~~~~~~ test upload in new folder")
|
||||
payload = "test"
|
||||
|
||||
Reference in New Issue
Block a user