Test changes
This commit is contained in:
@@ -51,7 +51,7 @@ func TestGetMessageWithMock(t *testing.T) {
|
||||
mockstore := mock.NewMockMessageStore()
|
||||
testUserId := uuid.New()
|
||||
|
||||
testCon := message.Message{Content: "Who is the one that benefits?", UserId: testUserId}
|
||||
testCon := message.Message{Content: "Who is the one that benefits?", UserId: &testUserId}
|
||||
ctx := t.Context()
|
||||
if err := mockstore.CreateMessage(ctx, &testCon); err != nil {
|
||||
assert.NoError(t, err, "Error creating message")
|
||||
|
||||
Reference in New Issue
Block a user