@@ -12,7 +12,7 @@ import (
1212
1313func  TestTopicSubscripiton (t  * testing.T ) {
1414	t .Run ("duplicate metadata" , func (t  * testing.T ) {
15- 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" )
15+ 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" ,  "" )
1616		require .NoError (t , sub .SetMetadata (map [string ]string {
1717			"test" : "test" ,
1818		}))
@@ -22,23 +22,23 @@ func TestTopicSubscripiton(t *testing.T) {
2222	})
2323
2424	t .Run ("duplicate route" , func (t  * testing.T ) {
25- 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" )
25+ 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" ,  "" )
2626		require .NoError (t , sub .SetDefaultRoute ("/test" ))
2727		assert .Equal (t , "/test" , sub .Route )
2828		require .EqualError (t , sub .SetDefaultRoute ("/test" ),
2929			"subscription for topic mytopic on pubsub test already has route /test" )
3030	})
3131
3232	t .Run ("duplicate route after routing rule" , func (t  * testing.T ) {
33- 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" )
33+ 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" ,  "" )
3434		require .NoError (t , sub .AddRoutingRule ("/other" , `event.type == "test"` , 0 ))
3535		require .NoError (t , sub .SetDefaultRoute ("/test" ))
3636		require .EqualError (t , sub .SetDefaultRoute ("/test" ),
3737			"subscription for topic mytopic on pubsub test already has route /test" )
3838	})
3939
4040	t .Run ("default route after routing rule" , func (t  * testing.T ) {
41- 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" )
41+ 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" ,  "" )
4242		require .NoError (t , sub .SetDefaultRoute ("/test" ))
4343		assert .Equal (t , "/test" , sub .Route )
4444		require .NoError (t , sub .AddRoutingRule ("/other" , `event.type == "test"` , 0 ))
@@ -49,14 +49,14 @@ func TestTopicSubscripiton(t *testing.T) {
4949	})
5050
5151	t .Run ("duplicate routing rule priority" , func (t  * testing.T ) {
52- 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" )
52+ 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" ,  "" )
5353		require .NoError (t , sub .AddRoutingRule ("/other" , `event.type == "other"` , 1 ))
5454		require .EqualError (t , sub .AddRoutingRule ("/test" , `event.type == "test"` , 1 ),
5555			"subscription for topic mytopic on pubsub test already has a routing rule with priority 1" )
5656	})
5757
5858	t .Run ("priority ordering" , func (t  * testing.T ) {
59- 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" )
59+ 		sub  :=  internal .NewTopicSubscription ("test" , "mytopic" ,  "" )
6060		require .NoError (t , sub .AddRoutingRule ("/100" , `event.type == "100"` , 100 ))
6161		require .NoError (t , sub .AddRoutingRule ("/1" , `event.type == "1"` , 1 ))
6262		require .NoError (t , sub .AddRoutingRule ("/50" , `event.type == "50"` , 50 ))
0 commit comments