Reduce recording time to 1 minute (#13944)

Signed-off-by: Audrius Molis <masta@dr.com>

Signed-off-by: Audrius Molis <masta@dr.com>
This commit is contained in:
Audrius Molis 2022-09-07 13:19:12 +03:00 committed by GitHub
parent d7bbe1ceec
commit f524b47b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -22,7 +22,6 @@
;; reference db levels
(def total-silence-db -160)
(def silence-db -35)
(def max-db 0)
;; update interval for the pulsing rec button
(def metering-interval 100)
@ -47,9 +46,8 @@
{:filename (str base-filename default-format)
:meteringInterval metering-interval}))
;; maximum 2 minutes of recordings time
;; to keep data under 900k
(def max-recording-ms (* 2 60 1000))
;; maximum 1 minute of recordings time to keep data at certain size
(def max-recording-ms (* 1 60 1000))
;; audio objects
(defonce recorder-ref (atom nil))

View File

@ -253,17 +253,17 @@ class TestOneToOneChatMultipleSharedDevices(MultipleSharedDeviceTestCase):
self.errors.verify_no_errors()
@marks.testrail_id(6316)
def test_1_1_chat_text_message_with_push(self):
def test_1_1_chat_audio_message_with_push(self):
self.home_2.just_fyi("Put app on background (to check Push notification received for audio message)")
self.home_2.click_system_home_button()
self.home_2.just_fyi("Sending audio message to device who is on background")
self.chat_1.record_audio_message(message_length_in_seconds=125)
self.chat_1.record_audio_message(message_length_in_seconds=65)
if not self.chat_1.element_by_text("Maximum recording time reached").is_element_displayed():
self.drivers[0].fail("Exceeded 2 mins limit of recording time.")
self.drivers[0].fail("Exceeded 1 min limit of recording time.")
self.chat_1.ok_button.click()
if self.chat_1.audio_message_recorded_time.text != "1:59":
if self.chat_1.audio_message_recorded_time.text != "0:59":
self.errors.append("Timer exceed 2 minutes")
self.chat_1.send_message_button.click()