Skip to content

Commit a02a1e8

Browse files
committed
Remove unused MockLogger implementation and update unit test
1 parent e6ccc16 commit a02a1e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

httpclient/httpclient_rate_handler_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"testing"
88
"time"
99

10+
"github.com/deploymenttheory/go-api-http-client/mocklogger"
1011
"github.com/stretchr/testify/assert"
1112
)
1213

@@ -76,7 +77,8 @@ func TestParseRateLimitHeaders(t *testing.T) {
7677
resp.Header.Add(k, v)
7778
}
7879

79-
wait := parseRateLimitHeaders(resp, NewMockLogger())
80+
mockLog := mocklogger.NewMockLogger()
81+
wait := parseRateLimitHeaders(resp, mockLog)
8082

8183
// Adjust the delta based on the expected wait duration
8284
delta := time.Duration(1) * time.Second

0 commit comments

Comments
 (0)