aboutsummaryrefslogtreecommitdiff
path: root/hotline/transaction_handlers_test.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2023-04-19 17:53:28 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2023-04-19 17:53:28 -0700
commitc8bfd6061f5079f6c6c0155a2de1e8cd32d8a39a (patch)
treef85d63284948a159023080eae7703639f861403b /hotline/transaction_handlers_test.go
parent902b8ac1e0d96f6c88a9bd352cb32b6bf69105d0 (diff)
Use strings.ReplaceAll method
Diffstat (limited to 'hotline/transaction_handlers_test.go')
-rw-r--r--hotline/transaction_handlers_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/transaction_handlers_test.go b/hotline/transaction_handlers_test.go
index ff1a53c..01880f2 100644
--- a/hotline/transaction_handlers_test.go
+++ b/hotline/transaction_handlers_test.go
@@ -2980,7 +2980,7 @@ func TestHandleGetClientInfoText(t *testing.T) {
ErrorCode: []byte{0, 0, 0, 0},
Fields: []Field{
NewField(FieldData, []byte(
- strings.Replace(`Nickname: Testy McTest
+ strings.ReplaceAll(`Nickname: Testy McTest
Name: test
Account: test
Address: 1.2.3.4:12345
@@ -3005,7 +3005,7 @@ None.
None.
-`, "\n", "\r", -1)),
+`, "\n", "\r")),
),
NewField(FieldUserName, []byte("Testy McTest")),
},