Skip to content

Commit 0cd6cfe

Browse files
committed
t: run at least once Memorylimit register with max_rss_limit > 0
Related: https://progress.opensuse.org/issues/178948
1 parent 2a2c445 commit 0cd6cfe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

t/api/14-plugin_memory_limit.t

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2017-2025 SUSE LLC
2+
# SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
use Test::Most;
5+
use Mojolicious;
6+
7+
use_ok('OpenQA::WebAPI::Plugin::MemoryLimit');
8+
9+
my $app = Mojolicious->new;
10+
$app->config->{global}{max_rss_limit} = 42;
11+
OpenQA::WebAPI::Plugin::MemoryLimit->register($app, undef);
12+
13+
done_testing;

0 commit comments

Comments
 (0)