fix test
This commit is contained in:
parent
0a8271e326
commit
55872133b8
@ -19,6 +19,6 @@ func TestQuery(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestXa(t *testing.T) {
|
||||
_, err := NewXaClient("http://localhost:8080", MS{}, "badurl", nil)
|
||||
_, err := NewXaClient("http://localhost:8080", MS{}, ":::::", nil)
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ func LogIfFatalf(condition bool, fmt string, args ...interface{}) {
|
||||
|
||||
// FatalIfError 采用红色打印错误类信息, 并退出
|
||||
func FatalIfError(err error) {
|
||||
LogIfFatalf(err == nil, "Fatal error: %v", err)
|
||||
LogIfFatalf(err != nil, "Fatal error: %v", err)
|
||||
}
|
||||
|
||||
// RestyClient the resty object
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user