Skip to content

Commit

Permalink
test only relay credentials push updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed Jan 8, 2025
1 parent 3d7003b commit 70b0925
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions management/server/token_mgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,14 @@ loop:
}
}
if relay := update.Update.GetWiretrusteeConfig().GetRelay(); relay != nil {
relayUpdates++
if relayUpdates == 1 {
firstRelayUpdate = relay
} else {
secondRelayUpdate = relay
// avoid updating on turn updates since they also send relay credentials
if update.Update.GetWiretrusteeConfig().GetTurns() == nil {
relayUpdates++
if relayUpdates == 1 {
firstRelayUpdate = relay
} else {
secondRelayUpdate = relay
}
}
}
}
Expand Down

0 comments on commit 70b0925

Please sign in to comment.