From 5db20834f065fb15ba4c4dc9927493572382b204 Mon Sep 17 00:00:00 2001 From: Chris Ziogas Date: Wed, 27 Mar 2024 10:50:42 +0200 Subject: [PATCH] fix temp path on Windows by converting backslashes to slashes --- eth/tracers/internal/tracetest/supply_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth/tracers/internal/tracetest/supply_test.go b/eth/tracers/internal/tracetest/supply_test.go index e58eb3b74f..d9834d398e 100644 --- a/eth/tracers/internal/tracetest/supply_test.go +++ b/eth/tracers/internal/tracetest/supply_test.go @@ -23,6 +23,7 @@ import ( "math/big" "os" "path" + "path/filepath" "reflect" "testing" @@ -516,7 +517,7 @@ func testSupplyTracer(genesis *core.Genesis, gen func(*core.BlockGen)) ([]live.S engine = beacon.New(ethash.NewFaker()) ) - traceOutputPath := os.TempDir() + traceOutputPath := filepath.ToSlash(os.TempDir()) traceOutputFilename := path.Join(traceOutputPath, "supply.jsonl") defer os.Remove(traceOutputFilename)