Skip to content

Commit

Permalink
ci: fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Mar 22, 2024
1 parent fe26247 commit d56a987
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/module/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

func TestWithConfig(t *testing.T) {
const str = `
const str = `
local http = require("http")
assert(type(http) == "table")
assert(type(http.get) == "function")
Expand All @@ -39,14 +39,14 @@ func TestWithConfig(t *testing.T) {

s.PreloadModule("http", NewModule(&config.Proxy{
Enable: true,
Url: "http://localhost",
Url: "http://127.0.0.1",
}))
if err := s.DoString(str); err != nil {
t.Error(err)
}
}
func TestGetRequest(t *testing.T) {
const str = `
const str = `
local http = require("http")
assert(type(http) == "table")
assert(type(http.get) == "function")
Expand All @@ -61,7 +61,7 @@ func TestGetRequest(t *testing.T) {
}

func TestHeadRequest(t *testing.T) {
const str = `
const str = `
local http = require("http")
assert(type(http) == "table")
assert(type(http.get) == "function")
Expand Down

0 comments on commit d56a987

Please sign in to comment.