From d0d94666cf8b74c5d44edf11c5b27ecc4323f735 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 5 Mar 2018 12:44:41 -0500 Subject: [PATCH] waddrmgr: update test to ensure timestamp is set --- waddrmgr/manager_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/waddrmgr/manager_test.go b/waddrmgr/manager_test.go index b376e90..ab58abb 100644 --- a/waddrmgr/manager_test.go +++ b/waddrmgr/manager_test.go @@ -11,6 +11,7 @@ import ( "os" "reflect" "testing" + "time" "github.com/roasbeef/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg/chainhash" @@ -1699,8 +1700,9 @@ func testSync(tc *testContext) bool { return false } blockStamp = waddrmgr.BlockStamp{ - Height: 1, - Hash: *latestHash, + Height: 1, + Hash: *latestHash, + Timestamp: time.Unix(1234, 0), } err = walletdb.Update(tc.db, func(tx walletdb.ReadWriteTx) error { ns := tx.ReadWriteBucket(waddrmgrNamespaceKey)