Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
test: wait for scheduled bulk messages
Acho Arnold Ewineec35a34ae8e
diff --git a/tests/integration_test.go b/tests/integration_test.goindex 7cc16809..7e998781 100644--- a/tests/integration_test.go+++ b/tests/integration_test.go@@ -449,6 +449,7 @@ func TestBulkSMS_CSV(t *testing.T) {// Wait for FCM pushwaitForFCMPush(t, messageID, 30*time.Second)+ pollMessageStatus(ctx, t, messageID, "scheduled", 15*time.Second)// Fire SENT eventfireEvent(ctx, t, phone.PhoneAPIKey, messageID, "SENT")@@ -537,6 +538,7 @@ func TestBulkSMS_Excel(t *testing.T) {msgID2 := bulkMessages[1].ID.String()waitForFCMPush(t, msgID1, 30*time.Second)waitForFCMPush(t, msgID2, 30*time.Second)+ pollMessageStatus(ctx, t, msgID1, "scheduled", 15*time.Second)// Fire SENT then DELIVERED on message 1, leave message 2 pendingfireEvent(ctx, t, phone.PhoneAPIKey, msgID1, "SENT")