Skip to content

Commit 7caee66

Browse files
committed
feat: update mock endpoint spec
1 parent b9ba802 commit 7caee66

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

templates/go/client.go.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func NewClient() Client {
7474
httpClient, err := getDefaultClient(defaultTimeout)
7575
if err != nil { panic(err) }
7676
return Client {
77-
endpoint: "https://{{ sdk.gitUserName|url_encode }}.io/v1",
77+
endpoint: "{{spec.endpoint}}",
7878
client: httpClient,
7979
timeout: defaultTimeout,
8080
headers: headers,

tests/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ abstract class Base extends TestCase
3636
];
3737

3838
const EXTENDED_GENERAL_RESPONSES = [
39-
'Download test passed.',
39+
'GET:/v1/mock/tests/general/download:passed',
4040
];
4141

4242
const COOKIE_RESPONSES = [

tests/languages/go/tests.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ func main() {
1616
if err != nil {
1717
panic(err)
1818
}
19-
client.SetEndpoint("https://appwrite.io/v1")
2019
client.AddHeader("Origin", "http://localhost")
2120
fmt.Print("\n\nTest Started\n")
2221
testFooService(client, stringInArray)

0 commit comments

Comments
 (0)