aboutsummaryrefslogtreecommitdiffstats
path: root/core/test
diff options
context:
space:
mode:
Diffstat (limited to 'core/test')
-rw-r--r--core/test/app.go3
-rw-r--r--core/test/app_test.go2
-rw-r--r--core/test/stopper_test.go2
3 files changed, 4 insertions, 3 deletions
diff --git a/core/test/app.go b/core/test/app.go
index 228edb4..7477329 100644
--- a/core/test/app.go
+++ b/core/test/app.go
@@ -162,7 +162,7 @@ func (app *App) TotalOrderingDelivered(blockHashes common.Hashes, mode uint32) {
// BlockDelivered implements Application interface.
func (app *App) BlockDelivered(
- blockHash common.Hash, result types.FinalizationResult) {
+ blockHash common.Hash, _ types.Position, result types.FinalizationResult) {
func() {
app.deliveredLock.Lock()
defer app.deliveredLock.Unlock()
@@ -220,6 +220,7 @@ func (app *App) Compare(other *App) error {
// Verify checks the integrity of date received by this App instance.
func (app *App) Verify() error {
+ // TODO(mission): verify blocks' position when delivered.
app.deliveredLock.RLock()
defer app.deliveredLock.RUnlock()
diff --git a/core/test/app_test.go b/core/test/app_test.go
index eb14039..4a7c4b9 100644
--- a/core/test/app_test.go
+++ b/core/test/app_test.go
@@ -82,7 +82,7 @@ func (s *AppTestSuite) deliverBlockWithTimeFromSequenceLength(
func (s *AppTestSuite) deliverBlock(
app *App, hash common.Hash, timestamp time.Time, height uint64) {
- app.BlockDelivered(hash, types.FinalizationResult{
+ app.BlockDelivered(hash, types.Position{}, types.FinalizationResult{
Timestamp: timestamp,
Height: height,
})
diff --git a/core/test/stopper_test.go b/core/test/stopper_test.go
index 3ba7db6..d823f59 100644
--- a/core/test/stopper_test.go
+++ b/core/test/stopper_test.go
@@ -44,7 +44,7 @@ func (s *StopperTestSuite) deliver(
}
app.TotalOrderingDelivered(hashes, core.TotalOrderingModeNormal)
for _, h := range hashes {
- app.BlockDelivered(h, types.FinalizationResult{
+ app.BlockDelivered(h, types.Position{}, types.FinalizationResult{
Timestamp: time.Time{},
})
}