mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-05 20:22:28 +00:00
Merge pull request #339 from moorereason/StatusOK
Fix TestWebhook tests
This commit is contained in:
commit
1cf531b1c3
2 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,9 @@
|
|||
language: go
|
||||
|
||||
go:
|
||||
- 1.8.x
|
||||
- 1.9.x
|
||||
- 1.11.x
|
||||
- 1.12.x
|
||||
- 1.13.x
|
||||
- tip
|
||||
|
||||
os:
|
||||
|
|
|
@ -76,7 +76,6 @@ func TestWebhook(t *testing.T) {
|
|||
|
||||
for _, tt := range hookHandlerTests {
|
||||
t.Run(tt.desc, func(t *testing.T) {
|
||||
|
||||
ip, port := serverAddress(t)
|
||||
args := []string{fmt.Sprintf("-hooks=%s", configPath), fmt.Sprintf("-ip=%s", ip), fmt.Sprintf("-port=%s", port), "-verbose"}
|
||||
|
||||
|
@ -249,7 +248,7 @@ func serverAddress(t *testing.T) (string, string) {
|
|||
func waitForServerReady(t *testing.T, ip, port string) {
|
||||
waitForServer(t,
|
||||
fmt.Sprintf("http://%v:%v/", ip, port),
|
||||
http.StatusNotFound,
|
||||
http.StatusOK,
|
||||
5*time.Second)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue