Skip to content

Commit c1df2e8

Browse files
jonas-jonasory-bot
authored andcommitted
chore: deflake registration expiry unit test
GitOrigin-RevId: 4be53a36bb4ca15ebaf977d9ab5303e6f5652c2e
1 parent 623742e commit c1df2e8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

selfservice/flow/registration/error_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package registration_test
55

66
import (
77
"context"
8-
"encoding/json"
98
"io"
109
"net/http"
1110
"net/http/httptest"
@@ -179,7 +178,7 @@ func TestHandleError(t *testing.T) {
179178
require.Equal(t, http.StatusGone, res.StatusCode, "%+v\n\t%s", res.Request, body)
180179

181180
assert.NotEqual(t, "00000000-0000-0000-0000-000000000000", gjson.GetBytes(body, "use_flow_id").String())
182-
assertx.EqualAsJSONExcept(t, flow.NewFlowExpiredError(anHourAgo), json.RawMessage(body), []string{"since", "redirect_browser_to", "use_flow_id"})
181+
assert.Equal(t, text.ErrIDSelfServiceFlowExpired, gjson.GetBytes(body, "error.id").String(), "%s", body)
183182
})
184183

185184
t.Run("case=validation error", func(t *testing.T) {

0 commit comments

Comments
 (0)