Skip to content

Commit

Permalink
Reset before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nkshah2 committed Aug 28, 2023
1 parent d6747c6 commit 652a13d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipe/session/querier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func resetQuerier() {
}

func TestThatNetworkCallIsRetried(t *testing.T) {
resetAll()
mux := http.NewServeMux()

numberOfTimesCalled := 0
Expand Down Expand Up @@ -123,6 +124,7 @@ func TestThatNetworkCallIsRetried(t *testing.T) {
}

func TestThatRateLimitErrorsAreThrownBackToTheUser(t *testing.T) {
resetAll()
mux := http.NewServeMux()

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

func TestThatParallelCallsHaveIndependentRetryCounters(t *testing.T) {
resetAll()
mux := http.NewServeMux()

numberOfTimesFirstCalled := 0
Expand Down

0 comments on commit 652a13d

Please sign in to comment.