mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 21:34:56 +00:00
string formatted timestamp for chats
This commit is contained in:
@@ -2,6 +2,7 @@ package handler_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/micro/services/chats/handler"
|
||||
pb "github.com/micro/services/chats/proto"
|
||||
@@ -98,7 +99,7 @@ func TestSendMessage(t *testing.T) {
|
||||
assertMessagesMatch(t, &pb.Message{
|
||||
AuthorId: tc.AuthorID,
|
||||
ChatId: tc.ChatID,
|
||||
SentAt: h.Time().UnixNano(),
|
||||
SentAt: h.Time().Format(time.RFC3339Nano),
|
||||
Text: tc.Text,
|
||||
Id: tc.ID,
|
||||
}, rsp.Message)
|
||||
|
||||
Reference in New Issue
Block a user