test: fix state from PBF test, sequence is only estimated
parent
d8bccbe35a
commit
8d8694976c
|
@ -14,7 +14,11 @@ func TestFromPBF(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if state.Sequence != 1368231 || !state.Time.Equal(expected) {
|
||||
t.Error(state)
|
||||
if state.Sequence > 1368233 || state.Sequence < 1360000 {
|
||||
// sequence is only estimated
|
||||
t.Error("unexpected sequence", state)
|
||||
}
|
||||
if !state.Time.Equal(expected) {
|
||||
t.Error("unexpected timestamp", state)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue