mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix tcp test flake.
Verify the SackedOut value only when the connection is not in any recovery. Before: http://sponge2/84d99422-bbd6-4ae8-992f-da9501da2dca After: http://sponge2/bc143f42-b56a-405a-b7ad-115447dc75f4 PiperOrigin-RevId: 536606932
This commit is contained in:
committed by
gVisor bot
parent
a055645a79
commit
543a60e4a1
@@ -973,9 +973,10 @@ func TestRACKUpdateSackedOut(t *testing.T) {
|
||||
t.Fatalf("SackedOut got updated to wrong value got: %v want: 2", state.Sender.SackedOut)
|
||||
}
|
||||
|
||||
if state.Sender.SackedOut != 0 && ackNum == 1 {
|
||||
if !state.Sender.FastRecovery.Active && state.Sender.SackedOut != 0 && ackNum == 1 {
|
||||
t.Fatalf("SackedOut got updated to wrong value got: %v want: 0", state.Sender.SackedOut)
|
||||
}
|
||||
|
||||
if ackNum > 0 {
|
||||
close(probeDone)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user