@@ -39,7 +39,7 @@ func TestPollsLocalPushRules(t *testing.T) {
3939 // Request each of the push rule IDs defined by MSC3930 and verify their structure.
4040
4141 // This push rule silences all poll responses.
42- pollResponseRule := alice .GetPushRule (t , "global" , "override" , pollResponseRuleID )
42+ pollResponseRule := alice .MustGetPushRule (t , "global" , "override" , pollResponseRuleID )
4343 must .MatchGJSON (
4444 t ,
4545 pollResponseRule ,
@@ -55,7 +55,7 @@ func TestPollsLocalPushRules(t *testing.T) {
5555 )
5656
5757 // This push rule creates a sound and notifies the user when a poll is started in a one-to-one room.
58- pollStartOneToOneRule := alice .GetPushRule (t , "global" , "underride" , pollStartOneToOneRuleID )
58+ pollStartOneToOneRule := alice .MustGetPushRule (t , "global" , "underride" , pollStartOneToOneRuleID )
5959 must .MatchGJSON (
6060 t ,
6161 pollStartOneToOneRule ,
@@ -78,7 +78,7 @@ func TestPollsLocalPushRules(t *testing.T) {
7878 )
7979
8080 // This push rule creates a sound and notifies the user when a poll is ended in a one-to-one room.
81- pollEndOneToOneRule := alice .GetPushRule (t , "global" , "underride" , pollEndOneToOneRuleID )
81+ pollEndOneToOneRule := alice .MustGetPushRule (t , "global" , "underride" , pollEndOneToOneRuleID )
8282 must .MatchGJSON (
8383 t ,
8484 pollEndOneToOneRule ,
@@ -101,7 +101,7 @@ func TestPollsLocalPushRules(t *testing.T) {
101101 )
102102
103103 // This push rule notifies the user when a poll is started in any room.
104- pollStartRule := alice .GetPushRule (t , "global" , "underride" , pollStartRuleID )
104+ pollStartRule := alice .MustGetPushRule (t , "global" , "underride" , pollStartRuleID )
105105 must .MatchGJSON (
106106 t ,
107107 pollStartRule ,
@@ -118,7 +118,7 @@ func TestPollsLocalPushRules(t *testing.T) {
118118 )
119119
120120 // This push rule notifies the user when a poll is ended in any room.
121- pollEndRule := alice .GetPushRule (t , "global" , "underride" , pollEndRuleID )
121+ pollEndRule := alice .MustGetPushRule (t , "global" , "underride" , pollEndRuleID )
122122 must .MatchGJSON (
123123 t ,
124124 pollEndRule ,
0 commit comments