Skip to content

Commit

Permalink
Fix chat test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Apr 27, 2024
1 parent b893f72 commit 47096ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chat/message_test.go → chat/jsonmessage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ func TestMessage_ClearString(t *testing.T) {
}
}

func TestMessage_WriteTo(t *testing.T) {
func TestJsonMessage_WriteTo(t *testing.T) {
chat.SetLanguage(en_us.Map)
var codeMsg bytes.Buffer
_, _ = chat.Message{Translate: "multiplayer.disconnect.server_full"}.WriteTo(&codeMsg)
_, _ = chat.JsonMessage{Translate: "multiplayer.disconnect.server_full"}.WriteTo(&codeMsg)

var msg pk.String // Decode as a String
if _, err := msg.ReadFrom(&codeMsg); err != nil {
Expand Down

0 comments on commit 47096ee

Please sign in to comment.