From 0e48c691e007e5197a404f735af5031f83175c8f Mon Sep 17 00:00:00 2001 From: Maxence Maireaux Date: Thu, 10 Oct 2024 14:48:03 +0200 Subject: [PATCH] fix(performance): add sudo to systemctl restart in Earthfile Add sudo to the systemctl restart command to ensure proper permissions are granted when restarting the ledger service during performance tests. --- test/performance/Earthfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/performance/Earthfile b/test/performance/Earthfile index d94c703cb..9f5c5a2cd 100644 --- a/test/performance/Earthfile +++ b/test/performance/Earthfile @@ -5,7 +5,7 @@ IMPORT github.com/formancehq/earthly:tags/v0.16.2 AS core ci: LOCALLY RUN cd ../../ && go build -o /tmp/ledger ./ - RUN systemctl restart ledger + RUN sudo systemctl restart ledger RUN go test -bench="Write" -run ^$ -tags it -report.file ./report/report.json -timeout 60m -benchtime 10s --ledger.url=http://localhost:3068 run: