From 5f09bd850277491e9f38fca587bea546ceba1cac Mon Sep 17 00:00:00 2001 From: Niven Date: Wed, 31 Jul 2024 09:41:06 +0800 Subject: [PATCH] Fix lint --- dataavailability/nubit/backend_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dataavailability/nubit/backend_test.go b/dataavailability/nubit/backend_test.go index 121743c840..2d11921ae5 100644 --- a/dataavailability/nubit/backend_test.go +++ b/dataavailability/nubit/backend_test.go @@ -11,6 +11,7 @@ import ( "testing" "time" + "github.com/0xPolygonHermez/zkevm-node/config/types" "github.com/0xPolygonHermez/zkevm-node/log" "github.com/ethereum/go-ethereum/common" "github.com/rollkit/go-da/proxy" @@ -24,7 +25,7 @@ func TestOffchainPipeline(t *testing.T) { NubitAuthKey: "", NubitNamespace: "xlayer", NubitGetProofMaxRetry: 10, - NubitGetProofWaitPeriod: 5 * time.Second, + NubitGetProofWaitPeriod: types.NewDuration(5 * time.Second), } pk, err := ecdsa.GenerateKey(elliptic.P256(), crand.Reader) require.NoError(t, err) @@ -72,7 +73,7 @@ func TestOffchainPipelineWithRandomData(t *testing.T) { NubitAuthKey: "", NubitNamespace: "xlayer", NubitGetProofMaxRetry: 10, - NubitGetProofWaitPeriod: 5 * time.Second, + NubitGetProofWaitPeriod: types.NewDuration(5 * time.Second), } pk, err := ecdsa.GenerateKey(elliptic.P256(), crand.Reader) require.NoError(t, err)