Skip to content

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfone committed May 13, 2024
1 parent 0512365 commit e701e2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ import (
"net/http"
"testing"
"time"

"github.com/xgfone/go-defaults"
)

func TestStartServer(t *testing.T) {
defaults.ExitFunc.Set(func(int) {})

func() {
start := time.Now()
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
Expand Down

0 comments on commit e701e2a

Please sign in to comment.