Assert nominal VPN pressure action
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user