@@ -4769,26 +4769,26 @@ func TestDistSenderSlowLogMessage(t *testing.T) {
4769
4769
br .Error = kvpb .NewError (errors .New ("boom" ))
4770
4770
desc := & roachpb.RangeDescriptor {RangeID : 9 , StartKey : roachpb .RKey ("x" ), EndKey : roachpb .RKey ("z" )}
4771
4771
{
4772
- exp := `have been waiting 8.16s (120 attempts) for RPC Get(Shared,Unreplicated) [‹ "a"› ] to` +
4773
- ` r9:‹ {x-z}› [<no replicas>, next=0, gen=0]; resp: ‹ (err: boom)› `
4772
+ exp := `have been waiting 8.16s (120 attempts) for RPC Get(Shared,Unreplicated) ["a"] to` +
4773
+ ` r9:{x-z} [<no replicas>, next=0, gen=0]; resp: (err: boom)`
4774
4774
var s redact.StringBuilder
4775
4775
slowRangeRPCWarningStr (& s , ba , dur , attempts , desc , nil /* err */ , br )
4776
- act := s .RedactableString ()
4776
+ act := s .RedactableString (). StripMarkers ()
4777
4777
require .EqualValues (t , exp , act )
4778
4778
}
4779
4779
{
4780
4780
exp := `slow RPC finished after 8.16s (120 attempts)`
4781
4781
var s redact.StringBuilder
4782
4782
slowRangeRPCReturnWarningStr (& s , dur , attempts )
4783
- act := s .RedactableString ()
4783
+ act := s .RedactableString (). StripMarkers ()
4784
4784
require .EqualValues (t , exp , act )
4785
4785
}
4786
4786
{
4787
- exp := `have been waiting 8.16s (120 attempts) for RPC Get(Shared,Unreplicated) [‹ "a"› ] to` +
4788
- ` replica (n2,s3):1; resp: ‹ (err: boom)› `
4787
+ exp := `have been waiting 8.16s (120 attempts) for RPC Get(Shared,Unreplicated) ["a"] to` +
4788
+ ` replica (n2,s3):1; resp: (err: boom)`
4789
4789
var s redact.StringBuilder
4790
4790
slowReplicaRPCWarningStr (& s , ba , dur , attempts , nil /* err */ , br )
4791
- act := s .RedactableString ()
4791
+ act := s .RedactableString (). StripMarkers ()
4792
4792
require .EqualValues (t , exp , act )
4793
4793
}
4794
4794
}
0 commit comments