Assert nominal VPN pressure action

This commit is contained in:
2026-05-16 13:42:56 +03:00
parent 5e4c0d596b
commit 6a46063565
2 changed files with 11 additions and 0 deletions
@@ -797,6 +797,16 @@ func TestFabricFlowSchedulerDropsWhenChannelQueueIsFull(t *testing.T) {
}
}
func TestFabricFlowSchedulerSnapshotReportsNominalAction(t *testing.T) {
snapshot := NewFabricFlowScheduler(8, 8).Snapshot()
if snapshot.PressureLevel != "nominal" ||
snapshot.PressureScore != 0 ||
len(snapshot.PressureReasons) != 0 ||
snapshot.RecommendedAction != "observe" {
t.Fatalf("nominal pressure snapshot = %+v", snapshot)
}
}
func TestFabricFlowSchedulerRoundsSubMillisecondSendDuration(t *testing.T) {
scheduler := NewFabricFlowScheduler(8, 8)
channelID := "flow-01"