File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
"net"
14
14
"net/http"
15
15
"net/http/httptest"
16
+ "os"
16
17
"strings"
17
18
"testing"
18
19
"time"
@@ -186,10 +187,12 @@ func TestMain(m *testing.M) {
186
187
mux := createServerMux ()
187
188
ts , err := createServerTest (mux )
188
189
if err != nil {
189
- fmt .Println ("createServerTest" , err )
190
+ fmt .Println ("createServerTest: " , err )
191
+ os .Exit (1 )
190
192
}
191
- m .Run ()
193
+ code := m .Run ()
192
194
ts .Close ()
195
+ os .Exit (code )
193
196
}
194
197
195
198
func newApp () * App {
Original file line number Diff line number Diff line change 1
1
package kintone
2
2
3
3
import (
4
- "fmt"
5
4
"testing"
6
5
)
7
6
8
7
func TestDecodeCursor (t * testing.T ) {
9
8
data := []byte (`{"id":"aaaaaaaaaaaaaaaaaa","totalCount":"null"}` )
10
- cursor , err := decodeCursor (data )
9
+ _ , err := decodeCursor (data )
11
10
if err != nil {
12
11
t .Errorf ("TestDecodeCursor is failed: %v" , err )
13
-
14
12
}
15
- fmt .Println (cursor )
16
13
}
You can’t perform that action at this time.
0 commit comments