Skip to content

Commit

Permalink
fix: concurrency test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Vidmar committed May 9, 2024
1 parent 0fbf407 commit b8b21cd
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions test/concurrency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,27 @@ func writeWorker(ctx context.Context, contentfulClient *testapi.ContentfulClient
}
contentfulClient.SetProductInCache(product)
testLogger.Infof("Write worker %d set price: %d", i, i)
_ = product.SetBrand(testapi.ContentTypeSys{})
_ = product.SetCategories([]testapi.ContentTypeSys{})
_ = product.SetImage([]testapi.ContentTypeSys{})
_ = product.SetBrand(testapi.ContentTypeSys{
Sys: testapi.ContentTypeSysAttributes{
ID: "651CQ8rLoIYCeY6G0QG22q",
Type: "Link",
LinkType: "Entry",
},
})
_ = product.SetCategories([]testapi.ContentTypeSys{
{Sys: testapi.ContentTypeSysAttributes{
ID: "7LAnCobuuWYSqks6wAwY2a",
Type: "Link",
LinkType: "Entry",
}},
})
_ = product.SetImage([]testapi.ContentTypeSys{
{Sys: testapi.ContentTypeSysAttributes{
ID: "10TkaLheGeQG6qQGqWYqUI",
Type: "Link",
LinkType: "Asset",
}},
})
_ = product.SetNodes(nil)
_ = product.SetProductDescription("")
_ = product.SetProductName("")
Expand Down

0 comments on commit b8b21cd

Please sign in to comment.