Skip to content

Commit

Permalink
Run more tests in parallel
Browse files Browse the repository at this point in the history
Signed-off-by: James Pond <james@cipher.host>
  • Loading branch information
jamesponddotco committed Jan 24, 2024
1 parent 89c4bbf commit 2ed2b85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ func TestClient_Download(t *testing.T) {
}

func TestClient_Upload(t *testing.T) {
t.Parallel()

ctx := context.Background()

testFile, _, err := testutil.SetupFile(t)
Expand Down
6 changes: 6 additions & 0 deletions util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ func (*ErrorReader) Read(_ []byte) (n int, err error) {
}

func TestComputeSHA256(t *testing.T) {
t.Parallel()

fileContent := []byte("Test data for hashing.")

var (
Expand Down Expand Up @@ -56,7 +58,11 @@ func TestComputeSHA256(t *testing.T) {
}

for _, tc := range testCases {
tc := tc

t.Run(tc.name, func(t *testing.T) {
t.Parallel()

hash, err := bunnystorage.ComputeSHA256(tc.reader)
if (err != nil) != tc.expectError {
t.Fatalf("Expected error: %v, got: %v", tc.expectError, err)
Expand Down

0 comments on commit 2ed2b85

Please sign in to comment.