Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
winebarrel committed Jun 14, 2024
1 parent d81f6c4 commit 6ab0460
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client_private_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ func Test_sendRequest_OK(t *testing.T) {

func Test_sendRequest_Err_JoinPath(t *testing.T) {
assert := assert.New(t)
httpmock.Activate()
defer httpmock.DeactivateAndReset()

client, _ := NewClient("https://redash.example.com", "<secret>")
client.endpoint = "\b"
_, err := client.sendRequest(context.Background(), http.MethodGet, "api/queries/1", map[string]string{"foo": "bar"}, nil)
Expand All @@ -55,9 +52,6 @@ func Test_sendRequest_Err_JoinPath(t *testing.T) {

func Test_sendRequest_Err_Marshal(t *testing.T) {
assert := assert.New(t)
httpmock.Activate()
defer httpmock.DeactivateAndReset()

client, _ := NewClient("https://redash.example.com", "<secret>")
_, err := client.sendRequest(context.Background(), http.MethodGet, "api/queries/1", map[string]string{"foo": "bar"}, math.NaN())
assert.ErrorContains(err, "json: unsupported value: NaN")
Expand Down

0 comments on commit 6ab0460

Please sign in to comment.