File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ public function handle()
79
79
->withOptions (['allow_redirects ' => ['strict ' => true ]])
80
80
->timeout ($ this ->webhook ->timeout )
81
81
->post ($ this ->webhook ->endpoint , $ webhookData );
82
-
83
82
} catch (\Exception $ exception ) {
84
83
$ lastError = $ exception ->getMessage ();
85
84
Log::error ("Webhook call to endpoint {$ this ->webhook ->endpoint } failed with error \"{$ lastError }\"" );
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ public function test_store()
39
39
'endpoint ' => 'https://example.com/webhook ' ,
40
40
'events ' => ['all ' ],
41
41
'active ' => 'true ' ,
42
+ 'timeout ' => 4 ,
42
43
]);
43
44
44
45
$ resp ->assertRedirect ('/settings/webhooks ' );
@@ -51,6 +52,7 @@ public function test_store()
51
52
'name ' => 'My first webhook ' ,
52
53
'endpoint ' => 'https://example.com/webhook ' ,
53
54
'active ' => true ,
55
+ 'timeout ' => 4 ,
54
56
]);
55
57
56
58
/** @var Webhook $webhook */
@@ -82,6 +84,7 @@ public function test_update()
82
84
'endpoint ' => 'https://example.com/updated-webhook ' ,
83
85
'events ' => [ActivityType::PAGE_CREATE , ActivityType::PAGE_UPDATE ],
84
86
'active ' => 'true ' ,
87
+ 'timeout ' => 5
85
88
]);
86
89
$ resp ->assertRedirect ('/settings/webhooks ' );
87
90
@@ -93,6 +96,7 @@ public function test_update()
93
96
'name ' => 'My updated webhook ' ,
94
97
'endpoint ' => 'https://example.com/updated-webhook ' ,
95
98
'active ' => true ,
99
+ 'timeout ' => 5 ,
96
100
]);
97
101
98
102
$ trackedEvents = $ webhook ->trackedEvents ()->get ();
You can’t perform that action at this time.
0 commit comments