projects
/
ssh-chat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac69f7
)
That would have bugged me if I didn't do this.
master
author
Pete
<pete@debu.gs>
Wed, 27 Mar 2024 23:15:29 +0000
(16:15 -0700)
committer
Pete
<pete@debu.gs>
Wed, 27 Mar 2024 23:15:29 +0000
(16:15 -0700)
chat/room_test.go
patch
|
blob
|
history
diff --git
a/chat/room_test.go
b/chat/room_test.go
index 661b0b39eb614bdaccd9bd94e007296dfabcba52..03733e90408394cbe080be59c5604e6479fb168d 100644
(file)
--- a/
chat/room_test.go
+++ b/
chat/room_test.go
@@
-254,7
+254,7
@@
func expectOutput(t *testing.T, buffer []byte, expected string) {
s := string(buffer)
// Just check the suffix instead of jumping through hoops.
if len(s) < len(expected) || s[len(s)-len(expected):] != expected {
- t.Errorf("Got: %q; Expected
: %q", s[len(s)-len(expected):]
, expected)
+ t.Errorf("Got: %q; Expected
it to end with: %q", s
, expected)
}
}