Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
HemanthDogiparthi12 committed Jan 15, 2025
1 parent 44c1e0e commit 9316dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genesyscloud/util/util_diagnostic_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestUnitTestAPIResponseDiagWithBadApiResponse(t *testing.T) {
}

targetDiag := &detailedDiagnosticInfo{}
targetResponse := "{\"resourceType\":\"genesyscloud_tf_exporter\",\"errorMessage\":\"Unable to build a message from the response because the APIResponse does not contain the appropriate data.\"}"
targetResponse := "{\"resourceType\":\"genesyscloud_tf_exporter\",\"statusCode\":500,\"errorMessage\":\"DummyError\",\"correlationId\":\"e03b48a1-7063-4ae2-921a-f64c8e02702b\"}"
json.Unmarshal([]byte(targetResponse), targetDiag)

diag := BuildAPIDiagnosticError(resourceType, sumErrMsg, apiResponse)
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestUnitTestAPIResponseWithRetriesDiagWithBadApiResponse(t *testing.T) {
}

targetDiag := &detailedDiagnosticInfo{}
targetResponse := "{\"resourceType\":\"genesyscloud_tf_exporter\",\"errorMessage\":\"Unable to build a message from the response because the APIResponse does not contain the appropriate data.\"}"
targetResponse := "{\"resourceType\":\"genesyscloud_tf_exporter\",\"statusCode\":500,\"errorMessage\":\"DummyError\",\"correlationId\":\"e03b48a1-7063-4ae2-921a-f64c8e02702b\"}"
_ = json.Unmarshal([]byte(targetResponse), targetDiag)

diag := BuildWithRetriesApiDiagnosticError(resourceType, sumErrMsg, apiResponse)
Expand Down

0 comments on commit 9316dbb

Please sign in to comment.