From a64cb8115979646a7f3fb1d2eb56a9c90413771c Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Fri, 6 Dec 2024 10:58:01 -0600 Subject: [PATCH] builds --- system_tests/overflow_assertions_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system_tests/overflow_assertions_test.go b/system_tests/overflow_assertions_test.go index 1e1dc5f119..1d9bb0c942 100644 --- a/system_tests/overflow_assertions_test.go +++ b/system_tests/overflow_assertions_test.go @@ -47,9 +47,10 @@ func TestOverflowAssertions(t *testing.T) { // Start the challenge manager with a minimumAssertionPeriod of 7 and make // sure that it posts overflow-assertions right away instead of waiting for // the 7 blocks to pass. - Require(t, os.RemoveAll("/tmp/good")) + goodDir, err := os.MkdirTemp("", "good_*") + Require(t, err) t.Cleanup(func() { - Require(t, os.RemoveAll("/tmp/good")) + Require(t, os.RemoveAll(goodDir)) }) ctx, cancelCtx := context.WithCancel(context.Background()) defer cancelCtx() @@ -125,9 +126,10 @@ func TestOverflowAssertions(t *testing.T) { l2stateprovider.Height(blockChallengeLeafHeight), &bold.StateProviderConfig{ ValidatorName: "good", - MachineLeavesCachePath: "/tmp/good", + MachineLeavesCachePath: goodDir, CheckBatchFinality: false, }, + goodDir, ) Require(t, err)