Skip to content

Commit 6858847

Browse files
committed
Add tests for rate limiting
1 parent 2628044 commit 6858847

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
package test
1+
package session
22

33
import (
44
"encoding/json"
55
"errors"
66
"github.com/stretchr/testify/assert"
7-
"github.com/supertokens/supertokens-golang/recipe/session"
87
"github.com/supertokens/supertokens-golang/supertokens"
98
"net/http"
109
"net/http/httptest"
@@ -80,7 +79,7 @@ func TestThatNetworkCallIsRetried(t *testing.T) {
8079
APIDomain: "api.supertokens.io",
8180
},
8281
RecipeList: []supertokens.Recipe{
83-
session.Init(nil),
82+
Init(nil),
8483
},
8584
}
8685

@@ -155,7 +154,7 @@ func TestThatRateLimitErrorsAreThrownBackToTheUser(t *testing.T) {
155154
APIDomain: "api.supertokens.io",
156155
},
157156
RecipeList: []supertokens.Recipe{
158-
session.Init(nil),
157+
Init(nil),
159158
},
160159
}
161160

@@ -224,7 +223,7 @@ func TestThatParallelCallsHaveIndependentRetryCounters(t *testing.T) {
224223
APIDomain: "api.supertokens.io",
225224
},
226225
RecipeList: []supertokens.Recipe{
227-
session.Init(nil),
226+
Init(nil),
228227
},
229228
}
230229

0 commit comments

Comments
 (0)