Skip to content

Commit 17c1c6c

Browse files
updated method in test file
1 parent a077b5d commit 17c1c6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/provider/resource_vdb_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ func testAccCheckDctVDBBookmarkConfigBasic() string {
141141
vdb_req := client.VDBsApi.ProvisionVdbBySnapshot(context.Background())
142142

143143
vdb_res, vdb_http_res, vdb_err := vdb_req.ProvisionVDBBySnapshotParameters(*provisionVDBBySnapshotParameters).Execute()
144-
if diags := apiErrorResponseHelper(vdb_res, vdb_http_res, vdb_err); diags != nil {
145-
println("An error occured during vdb creation: " + vdb_err.Error())
144+
if diags := apiErrorResponseHelper(context.Background(), vdb_res, vdb_http_res, vdb_err); diags != nil {
145+
println("An error occurred during vdb creation: " + vdb_err.Error())
146146
return "" // return empty config to indicate config error
147147
}
148148
vdb_id = *vdb_res.VdbId
@@ -163,8 +163,8 @@ func testAccCheckDctVDBBookmarkConfigBasic() string {
163163
bookmark_req := client.BookmarksApi.CreateBookmark(context.Background()).BookmarkCreateParameters(*bookmark)
164164
bk_res, bk_http_res, bk_err := bookmark_req.Execute()
165165

166-
if diags := apiErrorResponseHelper(bk_res, bk_http_res, bk_err); diags != nil {
167-
println("An error occured during bookmark creation: " + bk_err.Error())
166+
if diags := apiErrorResponseHelper(context.Background(), bk_res, bk_http_res, bk_err); diags != nil {
167+
println("An error occurred during bookmark creation: " + bk_err.Error())
168168
return ""
169169
}
170170
bookmark_id = *bk_res.Bookmark.Id
@@ -173,7 +173,7 @@ func testAccCheckDctVDBBookmarkConfigBasic() string {
173173
bk_job_res, bk_job_err := PollJobStatus(*bk_res.Job.Id, context.Background(), client)
174174

175175
if bk_job_res == Failed || bk_job_res == Canceled || bk_job_res == Abandoned {
176-
println("An error occured during bookmark job polling: " + bk_job_err)
176+
println("An error occurred during bookmark job polling: " + bk_job_err)
177177
return "" // return empty config to indicate config error
178178
}
179179

0 commit comments

Comments
 (0)