From 4cc255676b30a4aeecf28f095f1a7d745df8f175 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Tue, 30 Oct 2018 17:29:00 +0100 Subject: [PATCH] utxonursery: use StaticFeeEstimator instead of mock in test --- utxonursery_test.go | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/utxonursery_test.go b/utxonursery_test.go index a72494958..db0ebd9a3 100644 --- a/utxonursery_test.go +++ b/utxonursery_test.go @@ -436,7 +436,7 @@ func createNurseryTestContext(t *testing.T, GenSweepScript: func() ([]byte, error) { return []byte{}, nil }, - Estimator: &mockFeeEstimator{}, + Estimator: &lnwallet.StaticFeeEstimator{}, Signer: &nurseryMockSigner{}, }) @@ -1011,21 +1011,6 @@ func (i *nurseryStoreInterceptor) RemoveChannel(chanPoint *wire.OutPoint) error return i.ns.RemoveChannel(chanPoint) } -type mockFeeEstimator struct{} - -func (m *mockFeeEstimator) EstimateFeePerKW( - numBlocks uint32) (lnwallet.SatPerKWeight, error) { - - return lnwallet.SatPerKWeight(10000), nil -} - -func (m *mockFeeEstimator) Start() error { - return nil -} -func (m *mockFeeEstimator) Stop() error { - return nil -} - type nurseryMockSigner struct { }