Skip to content

Commit 652a13d

Browse files
committed
Reset before tests
1 parent d6747c6 commit 652a13d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

recipe/session/querier_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func resetQuerier() {
1717
}
1818

1919
func TestThatNetworkCallIsRetried(t *testing.T) {
20+
resetAll()
2021
mux := http.NewServeMux()
2122

2223
numberOfTimesCalled := 0
@@ -123,6 +124,7 @@ func TestThatNetworkCallIsRetried(t *testing.T) {
123124
}
124125

125126
func TestThatRateLimitErrorsAreThrownBackToTheUser(t *testing.T) {
127+
resetAll()
126128
mux := http.NewServeMux()
127129

128130
mux.HandleFunc("/testing", func(rw http.ResponseWriter, r *http.Request) {
@@ -185,6 +187,7 @@ func TestThatRateLimitErrorsAreThrownBackToTheUser(t *testing.T) {
185187
}
186188

187189
func TestThatParallelCallsHaveIndependentRetryCounters(t *testing.T) {
190+
resetAll()
188191
mux := http.NewServeMux()
189192

190193
numberOfTimesFirstCalled := 0

0 commit comments

Comments
 (0)