Skip to content

Commit

Permalink
add unit test for NewWithClient
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulagr2 committed Nov 23, 2024
1 parent 37a5e6e commit ec07efc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ func startTestServerWithPort(t *testing.T, beforeStarting func(app *fiber.App))
return nil, ""
}

func Test_New_With_Client(t *testing.T) {
t.Parallel()

c := &fasthttp.Client{
MaxConnsPerHost: 5,
}
client := NewWithClient(c)

require.NotNil(t, client)
}

func Test_Client_Add_Hook(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit ec07efc

Please sign in to comment.