Use routetable.MaxWaitingOriginChanges in the prefix handler test
check / check (push) Failing after 2m0s
check / check (push) Failing after 2m0s
The test now reads the exported limit instead of its own copy of the number. Model: deepseek-v4-pro
This commit is contained in:
@@ -14,10 +14,6 @@ import (
|
|||||||
"git.eeqj.de/sneak/routewatch/internal/routetable"
|
"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
|
// TestPrefixHandlerWritesOriginChanges hands a running prefix handler an
|
||||||
// announcement and flushes. The flush must write the origin change to the
|
// announcement and flushes. The flush must write the origin change to the
|
||||||
// database.
|
// database.
|
||||||
@@ -149,7 +145,7 @@ func TestPrefixHandlerLogsTheDroppedOriginChanges(t *testing.T) {
|
|||||||
&slog.HandlerOptions{Level: slog.LevelWarn})),
|
&slog.HandlerOptions{Level: slog.LevelWarn})),
|
||||||
}
|
}
|
||||||
|
|
||||||
announceManyPrefixes(h.table, waitingOriginChangesLimit+1)
|
announceManyPrefixes(h.table, routetable.MaxWaitingOriginChanges+1)
|
||||||
|
|
||||||
h.flushBatch()
|
h.flushBatch()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user