Skip to content

Commit

Permalink
update diagrams in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ainghazal committed Feb 7, 2024
1 parent 7661d74 commit 3406791
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions internal/reliabletransport/reliable_ack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ import (
)

// test that everything that is received from below is eventually ACKed to the sender.
/*
┌────┐id ┌────┐
│sndr│◄──┤rcvr│
└─┬──┘ └──▲─┘
│ │
│ │
│ │
▼ send
ack
*/
func TestReliable_ACK(t *testing.T) {

log.SetLevel(log.DebugLevel)
Expand Down
6 changes: 3 additions & 3 deletions internal/reliabletransport/reliable_loss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import (

// test that everything that is sent eventually arrives in bounded time, in the pressence of losses.
/*
|
v
┌────┐ack┌────┐
│sndr│◄──┤rcvr│
└─┬──┘ └──▲─┘
│ │
drop◄─┤ │
│ │
▼relay (ack)
*/
func TestReliable_WithLoss(t *testing.T) {

Expand Down

0 comments on commit 3406791

Please sign in to comment.