@@ -601,8 +601,10 @@ func TestResourceURLNotifierLifecycle(t *testing.T) {
601601 URL : testUrl ,
602602 APIKey : apiKey ,
603603 APISecret : apiSecret ,
604- MaxAge : 200 * time .Millisecond ,
605- MaxDepth : 50 ,
604+ Config : ResourceURLNotifierConfig {
605+ MaxAge : 200 * time .Millisecond ,
606+ MaxDepth : 50 ,
607+ },
606608 HTTPClientParams : HTTPClientParams {
607609 RetryWaitMax : time .Millisecond ,
608610 MaxRetries : 1 ,
@@ -636,8 +638,10 @@ func TestResourceURLNotifierLifecycle(t *testing.T) {
636638 URL : "http://localhost:9987" ,
637639 APIKey : apiKey ,
638640 APISecret : apiSecret ,
639- MaxAge : 200 * time .Millisecond ,
640- MaxDepth : 50 ,
641+ Config : ResourceURLNotifierConfig {
642+ MaxAge : 200 * time .Millisecond ,
643+ MaxDepth : 50 ,
644+ },
641645 HTTPClientParams : HTTPClientParams {
642646 RetryWaitMax : time .Millisecond ,
643647 MaxRetries : 1 ,
@@ -660,11 +664,13 @@ func TestResourceURLNotifierFilter(t *testing.T) {
660664
661665 t .Run ("none" , func (t * testing.T ) {
662666 resourceURLNotifier := NewResourceURLNotifier (ResourceURLNotifierParams {
663- URL : testUrl ,
664- APIKey : apiKey ,
665- APISecret : apiSecret ,
666- MaxAge : 200 * time .Millisecond ,
667- MaxDepth : 50 ,
667+ URL : testUrl ,
668+ APIKey : apiKey ,
669+ APISecret : apiSecret ,
670+ Config : ResourceURLNotifierConfig {
671+ MaxAge : 200 * time .Millisecond ,
672+ MaxDepth : 50 ,
673+ },
668674 FilterParams : FilterParams {},
669675 })
670676 defer resourceURLNotifier .Stop (false )
@@ -691,8 +697,10 @@ func TestResourceURLNotifierFilter(t *testing.T) {
691697 URL : testUrl ,
692698 APIKey : apiKey ,
693699 APISecret : apiSecret ,
694- MaxAge : 200 * time .Millisecond ,
695- MaxDepth : 50 ,
700+ Config : ResourceURLNotifierConfig {
701+ MaxAge : 200 * time .Millisecond ,
702+ MaxDepth : 50 ,
703+ },
696704 FilterParams : FilterParams {
697705 IncludeEvents : []string {EventRoomStarted },
698706 },
@@ -721,8 +729,10 @@ func TestResourceURLNotifierFilter(t *testing.T) {
721729 URL : testUrl ,
722730 APIKey : apiKey ,
723731 APISecret : apiSecret ,
724- MaxAge : 200 * time .Millisecond ,
725- MaxDepth : 50 ,
732+ Config : ResourceURLNotifierConfig {
733+ MaxAge : 200 * time .Millisecond ,
734+ MaxDepth : 50 ,
735+ },
726736 FilterParams : FilterParams {
727737 ExcludeEvents : []string {EventRoomStarted },
728738 },
@@ -751,8 +761,10 @@ func TestResourceURLNotifierFilter(t *testing.T) {
751761 URL : testUrl ,
752762 APIKey : apiKey ,
753763 APISecret : apiSecret ,
754- MaxAge : 200 * time .Millisecond ,
755- MaxDepth : 50 ,
764+ Config : ResourceURLNotifierConfig {
765+ MaxAge : 200 * time .Millisecond ,
766+ MaxDepth : 50 ,
767+ },
756768 FilterParams : FilterParams {
757769 IncludeEvents : []string {EventRoomStarted },
758770 ExcludeEvents : []string {EventRoomStarted , EventRoomFinished },
@@ -785,8 +797,10 @@ func newTestResourceNotifier(timeout time.Duration, maxAge time.Duration, maxDep
785797 APIKey : apiKey ,
786798 APISecret : apiSecret ,
787799 Timeout : timeout ,
788- MaxAge : maxAge ,
789- MaxDepth : maxDepth ,
800+ Config : ResourceURLNotifierConfig {
801+ MaxAge : maxAge ,
802+ MaxDepth : maxDepth ,
803+ },
790804 })
791805}
792806
0 commit comments