Skip to content

Commit 92b7efd

Browse files
enjoy-binbinranshid
authored andcommitted
Fix TCL tmp dir leak in the ACL load test (#1895)
Signed-off-by: Binbin <[email protected]>
1 parent 0a95211 commit 92b7efd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/acl.tcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,19 +1307,21 @@ tags {acl external:skip} {
13071307
}
13081308
}
13091309

1310-
set server_path [tmpdir "acl"]
1310+
set server_path [tmpdir "server.acl"]
13111311
exec cp -f tests/assets/user.acl $server_path
13121312
start_server [list overrides [list "dir" $server_path "aclfile" "user.acl"] tags {"repl external:skip"}] {
13131313
set primary [srv 0 client]
13141314
set primary_host [srv 0 host]
13151315
set primary_port [srv 0 port]
1316+
13161317
test "Test ACL LOAD works on primary" {
13171318
exec cp -f tests/assets/user.acl $server_path
13181319
$primary ACL setuser harry on nopass resetchannels &test +@all ~*
13191320
$primary ACL save
13201321
$primary ACL load
13211322
$primary AUTH harry anything
13221323
}
1324+
13231325
start_server [list overrides [list "dir" $server_path "aclfile" "user.acl"]] {
13241326
set replica [srv 0 client]
13251327
$replica replicaof $primary_host $primary_port
@@ -1342,4 +1344,3 @@ start_server [list overrides [list "dir" $server_path "aclfile" "user.acl"] tags
13421344
}
13431345
}
13441346
}
1345-

0 commit comments

Comments
 (0)