Skip to content

Commit 721c6c2

Browse files
committed
Fix tests
1 parent 717f4ec commit 721c6c2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

templates/go/appwrite.go.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package appwrite
33
import (
44
"time"
55

6-
"github.com/appwrite/sdk-for-go/client"
6+
"github.com/{{sdk.gitUserName}}/sdk-for-go/client"
77
{% for key,service in spec.services %}
8-
"github.com/appwrite/sdk-for-go/{{ service.name | caseLower}}"
8+
"github.com/{{sdk.gitUserName}}/sdk-for-go/{{ service.name | caseLower}}"
99
{% endfor %}
1010
)
1111

tests/languages/go/tests.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
func main() {
18-
stringInArray := []interface{}{"string in array"}
18+
stringInArray := []string{"string in array"}
1919

2020
client := appwrite.NewClient(
2121
appwrite.WithTimeout(60 * time.Second),
@@ -27,7 +27,7 @@ func main() {
2727
testGeneralService(client, stringInArray)
2828
}
2929

30-
func testFooService(client client.Client, stringInArray []interface{}) {
30+
func testFooService(client client.Client, stringInArray []string) {
3131
foo := appwrite.NewFoo(client)
3232
// Foo Service
3333
response, err := foo.Get("string", 123, stringInArray)
@@ -61,7 +61,7 @@ func testFooService(client client.Client, stringInArray []interface{}) {
6161
fmt.Printf("%s\n", response.Result)
6262
}
6363

64-
func testBarService(client client.Client, stringInArray []interface{}) {
64+
func testBarService(client client.Client, stringInArray []string) {
6565
bar := appwrite.NewBar(client)
6666
// Bar Service
6767
response, err := bar.Get("string", 123, stringInArray)
@@ -95,7 +95,7 @@ func testBarService(client client.Client, stringInArray []interface{}) {
9595
fmt.Printf("%s\n", response.Result)
9696
}
9797

98-
func testGeneralService(client client.Client, stringInArray []interface{}) {
98+
func testGeneralService(client client.Client, stringInArray []string) {
9999
general := appwrite.NewGeneral(client)
100100
// General Service
101101
response, err := general.Redirect()
@@ -147,7 +147,7 @@ func testGeneralService(client client.Client, stringInArray []interface{}) {
147147
fmt.Printf("%s\n", headersResponse.Result)
148148
}
149149

150-
func testGeneralUpload(client client.Client, stringInArray []interface{}) {
150+
func testGeneralUpload(client client.Client, stringInArray []string) {
151151
general := appwrite.NewGeneral(client)
152152
uploadFile := path.Join("/app", "tests/resources/file.png")
153153
inputFile := file.NewInputFile(uploadFile, "file.png")
@@ -168,7 +168,7 @@ func testGeneralDownload(client client.Client) {
168168
fmt.Printf("%s\n", string(*response))
169169
}
170170

171-
func testLargeUpload(client client.Client, stringInArray []interface{}) {
171+
func testLargeUpload(client client.Client, stringInArray []string) {
172172
general := appwrite.NewGeneral(client)
173173
uploadFile := path.Join("/app", "tests/resources/large_file.mp4")
174174
inputFile := file.NewInputFile(uploadFile, "large_file.mp4")

0 commit comments

Comments
 (0)