Accept start/end timestamps as milliseconds since the epoch

This commit is contained in:
Jon Chambers
2025-11-25 16:10:34 -05:00
committed by Jon Chambers
parent f13837d2f2
commit aa2f9e5a65
3 changed files with 7 additions and 8 deletions

View File

@@ -122,8 +122,8 @@ class CallQualitySurveyManagerTest {
assertEquals(List.of("too_hot", "too_cold"), callQualitySurveyResponsePubSubMessage.getCallQualityIssuesList());
assertEquals("But this one is just right", callQualitySurveyResponsePubSubMessage.getAdditionalIssuesDescription());
assertEquals("https://example.com/", callQualitySurveyResponsePubSubMessage.getDebugLogUrl());
assertEquals(123456789, callQualitySurveyResponsePubSubMessage.getStartTimestamp());
assertEquals(987654321, callQualitySurveyResponsePubSubMessage.getEndTimestamp());
assertEquals(123456789L * 1_000, callQualitySurveyResponsePubSubMessage.getStartTimestamp());
assertEquals(987654321L * 1_000, callQualitySurveyResponsePubSubMessage.getEndTimestamp());
assertEquals("direct_video", callQualitySurveyResponsePubSubMessage.getCallType());
assertTrue(callQualitySurveyResponsePubSubMessage.getSuccess());
assertEquals("caller_hang_up", callQualitySurveyResponsePubSubMessage.getCallEndReason());