Make proxy timeouts configurable
Change-Id: I761f8e1c3fe6e57936e7ac9cee7422e94ec94ee4
diff --git a/t/proxy.t b/t/proxy.t
index 41b0acf..7c54127 100644
--- a/t/proxy.t
+++ b/t/proxy.t
@@ -14,7 +14,9 @@
my $t = Test::Mojo->new('Kalamar' => {
Kalamar => {
plugins => ['Auth'],
- experimental_proxy => 1
+ experimental_proxy => 1,
+ proxy_inactivity_timeout => 99,
+ proxy_connect_timeout => 66,
}
});
@@ -105,6 +107,10 @@
});
# Set proxy timeout
+is($t->app->ua->inactivity_timeout, 99);
+is($t->app->ua->connect_timeout, 66);
+
+# Set proxy timeout
$t->app->ua->inactivity_timeout(1);
$t->get_ok('/api/v1.0/longwait')