Skip to content

Commit

Permalink
ci: show err
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Mar 22, 2024
1 parent 4e7956b commit 37c22af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/module/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,21 @@
package http

import (
"runtime"
"testing"

"github.com/version-fox/vfox/internal/config"
lua "github.com/yuin/gopher-lua"
)

func TestWithConfig(t *testing.T) {
if runtime.GOOS != "darwin" {
t.Skip("Currently the error message only support darwin")
}

const str = `
local http = require("http")
assert(type(http) == "table")
assert(type(http.get) == "function")
local resp, err = http.get({
url = "http://ip.jsontest.com/"
})
print(err)
assert(err == 'Get "http://ip.jsontest.com/": proxyconnect tcp: dial tcp 127.0.0.1:80: connect: connection refused')
`
s := lua.NewState()
Expand Down

0 comments on commit 37c22af

Please sign in to comment.