Skip to content

Commit

Permalink
test: parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed May 29, 2024
1 parent 0126076 commit 4e1aea7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/api/feed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ func TestFeed_Get(t *testing.T) {
})

t.Run("chunk wrapping", func(t *testing.T) {
t.Parallel()

testData := []byte{0, 1, 2, 3, 4, 5, 6, 7, 8}

var (
Expand Down Expand Up @@ -175,8 +177,6 @@ func TestFeed_Get(t *testing.T) {
)

t.Run("retrieve chunk tree", func(t *testing.T) {
t.Parallel()

jsonhttptest.Request(t, client, http.MethodGet, feedResource(ownerString, "aabbcc", ""), http.StatusOK,
jsonhttptest.WithExpectedResponse(testData),
jsonhttptest.WithExpectedContentLength(testDataLen),
Expand All @@ -185,8 +185,6 @@ func TestFeed_Get(t *testing.T) {
})

t.Run("retrieve only wrapped chunk", func(t *testing.T) {
t.Parallel()

jsonhttptest.Request(t, client, http.MethodGet, feedResource(ownerString, "aabbcc", ""), http.StatusOK,
jsonhttptest.WithRequestHeader(api.SwarmOnlyRootChunk, "true"),
jsonhttptest.WithExpectedResponse(testRootCh.Data()),
Expand Down

0 comments on commit 4e1aea7

Please sign in to comment.