More test changes
This commit is contained in:
@@ -47,9 +47,9 @@ func TestCreateScheduledMessageEventWithMock(t *testing.T) {
|
||||
scheduledMessageId := uuid.New()
|
||||
testUserId := uuid.New()
|
||||
|
||||
con := TestContact(contactId, testUserId)
|
||||
msg := TestMessage(messageId, testUserId)
|
||||
schMsg := TestScheduledMessage(scheduledMessageId, testUserId, now)
|
||||
con := ContactTest(contactId, testUserId)
|
||||
msg := MessageTest(messageId, testUserId)
|
||||
schMsg := ScheduledMessageTest(scheduledMessageId, testUserId, now)
|
||||
|
||||
ctx := t.Context()
|
||||
|
||||
@@ -99,10 +99,10 @@ func TestGetScheduledMessageEventWithMock(t *testing.T) {
|
||||
scheduledMessageId := uuid.New()
|
||||
testUserId := uuid.New()
|
||||
|
||||
con := TestContact(contactId, testUserId)
|
||||
msg := TestMessage(messageId, testUserId)
|
||||
schMsg := TestScheduledMessage(scheduledMessageId, testUserId, now)
|
||||
event := TestScheduledMessageEvent(msg.Id, *con.Id, schMsg.Id)
|
||||
con := ContactTest(contactId, testUserId)
|
||||
msg := MessageTest(messageId, testUserId)
|
||||
schMsg := ScheduledMessageTest(scheduledMessageId, testUserId, now)
|
||||
event := ScheduledMessageEventTest(*msg.Id, *con.Id, schMsg.Id)
|
||||
|
||||
ctx := t.Context()
|
||||
|
||||
@@ -145,10 +145,10 @@ func TestDeleteScheduledMessageEventWithMock(t *testing.T) {
|
||||
assert.NoError(t, err, "Error getting app")
|
||||
handler := NewScheduledMessageEventHandler(apiApp, schMsgEventStore, schMsgStore)
|
||||
|
||||
con := TestContact(contactId, testUserId)
|
||||
msg := TestMessage(messageId, testUserId)
|
||||
schMsg := TestScheduledMessage(scheduledMessageId, testUserId, now)
|
||||
event := TestScheduledMessageEvent(msg.Id, *con.Id, schMsg.Id)
|
||||
con := ContactTest(contactId, testUserId)
|
||||
msg := MessageTest(messageId, testUserId)
|
||||
schMsg := ScheduledMessageTest(scheduledMessageId, testUserId, now)
|
||||
event := ScheduledMessageEventTest(*msg.Id, *con.Id, schMsg.Id)
|
||||
|
||||
ctx := t.Context()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user