Record origin changes and show them on the prefix page (closes #161) #231
@@ -14,10 +14,6 @@ import (
|
||||
"git.eeqj.de/sneak/routewatch/internal/routetable"
|
||||
)
|
||||
|
||||
// waitingOriginChangesLimit is the routing table's maxWaitingOriginChanges,
|
||||
// which this package cannot read.
|
||||
const waitingOriginChangesLimit = 100000
|
||||
|
||||
// TestPrefixHandlerWritesOriginChanges hands a running prefix handler an
|
||||
// announcement and flushes. The flush must write the origin change to the
|
||||
// database.
|
||||
@@ -149,7 +145,7 @@ func TestPrefixHandlerLogsTheDroppedOriginChanges(t *testing.T) {
|
||||
&slog.HandlerOptions{Level: slog.LevelWarn})),
|
||||
}
|
||||
|
||||
announceManyPrefixes(h.table, waitingOriginChangesLimit+1)
|
||||
announceManyPrefixes(h.table, routetable.MaxWaitingOriginChanges+1)
|
||||
|
||||
h.flushBatch()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user