Skip to content

Commit b80c04c

Browse files
author
huong
committed
fix review
1 parent 958b54e commit b80c04c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app_test.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"net"
1414
"net/http"
1515
"net/http/httptest"
16+
"os"
1617
"strings"
1718
"testing"
1819
"time"
@@ -186,10 +187,12 @@ func TestMain(m *testing.M) {
186187
mux := createServerMux()
187188
ts, err := createServerTest(mux)
188189
if err != nil {
189-
fmt.Println("createServerTest", err)
190+
fmt.Println("createServerTest: ", err)
191+
os.Exit(1)
190192
}
191-
m.Run()
193+
code := m.Run()
192194
ts.Close()
195+
os.Exit(code)
193196
}
194197

195198
func newApp() *App {

cursor_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
package kintone
22

33
import (
4-
"fmt"
54
"testing"
65
)
76

87
func TestDecodeCursor(t *testing.T) {
98
data := []byte(`{"id":"aaaaaaaaaaaaaaaaaa","totalCount":"null"}`)
10-
cursor, err := decodeCursor(data)
9+
_, err := decodeCursor(data)
1110
if err != nil {
1211
t.Errorf("TestDecodeCursor is failed: %v", err)
13-
1412
}
15-
fmt.Println(cursor)
1613
}

0 commit comments

Comments
 (0)