Skip to content

Commit

Permalink
fix path conflict when start 2 pika instances (OpenAtomFoundation#1989)
Browse files Browse the repository at this point in the history
Co-authored-by: J1senn <[email protected]>
  • Loading branch information
A2ureStone and J1senn authored Sep 25, 2023
1 parent 53ea034 commit 86d88d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/support/server.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ proc start_server {options {code undefined}} {
set ::port [find_available_port [expr {$::port+1}]]
dict set config port $::port

# start every server on a different path
dict set config log-path ./log$::port/
dict set config db-path ./db$::port/
dict set config dump-path ./dump$::port/

# apply overrides from global space and arguments
foreach {directive arguments} [concat $::global_overrides $overrides] {
dict set config $directive $arguments
Expand Down

0 comments on commit 86d88d1

Please sign in to comment.