aboutsummaryrefslogtreecommitdiff
path: root/clientapi/clientapi_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/clientapi_test.go')
-rw-r--r--clientapi/clientapi_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/clientapi/clientapi_test.go b/clientapi/clientapi_test.go
index 2c34c109..b339818a 100644
--- a/clientapi/clientapi_test.go
+++ b/clientapi/clientapi_test.go
@@ -33,6 +33,7 @@ import (
uapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrix"
"github.com/matrix-org/gomatrixserverlib"
+ "github.com/matrix-org/gomatrixserverlib/spec"
"github.com/matrix-org/util"
"github.com/stretchr/testify/assert"
"github.com/tidwall/gjson"
@@ -1105,7 +1106,7 @@ func Test3PID(t *testing.T) {
resp := threepid.GetValidatedResponse{}
switch r.URL.Query().Get("client_secret") {
case "fail":
- resp.ErrCode = "M_SESSION_NOT_VALIDATED"
+ resp.ErrCode = string(spec.ErrorSessionNotValidated)
case "fail2":
resp.ErrCode = "some other error"
case "fail3":