Skip to content

Commit

Permalink
chore: add test for snapshotManager.GetNewerHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Apr 17, 2024
1 parent d9d7ca8 commit 457a999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/snapshot/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func TestManagerCommitNewSnapshot(t *testing.T) {

assert.True(t, manager.HasNewerSnapshot(), "Should not have older snapshot!")
assert.Equal(t, int64(10), manager.GetOlderHeight(), "Height mismatch!")
assert.Equal(t, int64(20), manager.GetNewerHeight(), "Height mismatch!")

report, err := manager.GetReport()
require.NoError(t, err, "Error should not be presented!")
Expand Down

0 comments on commit 457a999

Please sign in to comment.