Skip to content

Commit

Permalink
Increase Voice Get Call Test Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrice6713 committed Dec 6, 2024
1 parent e7e2d05 commit c9ecd95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Bandwidth.StandardTests/Utilities/TestConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public static class TestConstants
{
// Bandwidth provided username.
public static readonly string Username = System.Environment.GetEnvironmentVariable("BW_USERNAME");

// Bandwidth provided password.
public static readonly string Password = System.Environment.GetEnvironmentVariable("BW_PASSWORD");

Expand All @@ -19,14 +19,14 @@ public static class TestConstants

// The phone number to send the message from.
public static readonly string From = System.Environment.GetEnvironmentVariable("BW_NUMBER");

// The phone number to send the message to.
public static readonly string To = System.Environment.GetEnvironmentVariable("USER_NUMBER");

// The publicly available base callback URL.
public static readonly string BaseCallbackUrl = System.Environment.GetEnvironmentVariable("BASE_CALLBACK_URL");

// Milliseconds of time to pause between voice requests.
public static readonly int Timeout = 500;
public static readonly int Timeout = 1000;
}
}
4 changes: 2 additions & 2 deletions Bandwidth.StandardTests/Voice/GetCallTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ public async Task GetCallReturnsOk()
Assert.IsType<DateTime>(getCallStateResponse.Data.StartTime);
Assert.Null(getCallStateResponse.Data.AnswerTime);
Assert.True(getCallStateResponse.Data.DisconnectCause == null || getCallStateResponse.Data.DisconnectCause == "busy");

const string errorMessage = "Callee is busy";
Assert.True(getCallStateResponse.Data.ErrorMessage == null || getCallStateResponse.Data.ErrorMessage == errorMessage);
// Assert if there's an error id and the error message is unrelated to a busy call.
Assert.True(getCallStateResponse.Data.ErrorId == null || getCallStateResponse.Data.ErrorMessage == errorMessage);

Assert.IsType<DateTime>(getCallStateResponse.Data.LastUpdate);
}
catch (ApiErrorException ex)
Expand Down

0 comments on commit c9ecd95

Please sign in to comment.