Skip to content

Commit 75ae124

Browse files
committed
fix: e2e test set cleanup dir through env
1 parent eee13db commit 75ae124

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN golangci-lint run
2222
# Unit tests
2323
RUN go test $(go list ./... | grep -v github.com/Peersyst/exrp/tests/e2e/poa)
2424
# End to end tests
25-
RUN go test -p 1 -v -timeout 30m ./tests/e2e/...
25+
RUN TEST_CLEANUP_DIR=false go test -p 1 -v -timeout 30m ./tests/e2e/...
2626
RUN touch /test.lock
2727

2828
FROM golang:1.20 AS release

testutil/network/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func DefaultConfig(numValidators int, numBondedValidators int, blockTime time.Du
126126
TokenDenom: "axrp",
127127
UnBoundingTime: (time.Duration(unbondingBlocks) * blockTime) + time.Second,
128128
PruningStrategy: pruningtypes.PruningOptionNothing,
129-
CleanupDir: true,
129+
CleanupDir: os.Getenv("TEST_CLEANUP_DIR") != "false",
130130
SigningAlgo: string(hd.EthSecp256k1Type),
131131
KeyringOptions: []keyring.Option{hd.EthSecp256k1Option()},
132132
PrintMnemonic: false,

0 commit comments

Comments
 (0)