From 755147802dc794d422acd78f6b129c1df5a53f64 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 19 Mar 2020 12:34:51 -0400 Subject: [PATCH] Update NOT_FOUND error to BAD_ALIAS error. --- tests/30rooms/05aliases.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/30rooms/05aliases.pl b/tests/30rooms/05aliases.pl index aacd69301..8234ef3bc 100644 --- a/tests/30rooms/05aliases.pl +++ b/tests/30rooms/05aliases.pl @@ -144,7 +144,7 @@ alias => $room_alias, alt_aliases => [ $bad_alias ], } - )->main::expect_matrix_error( 404, "M_NOT_FOUND" ) + )->main::expect_matrix_error( 400, "M_BAD_ALIAS" ) ->SyTest::pass_on_done( "m.room.canonical_alias rejects missing aliases" ); })->then( sub { # Create an invalid alias name (starts with % instead of #).