@@ -419,6 +419,8 @@ func TestGitSSHAuth(t *testing.T) {
419419 base64Key := base64 .StdEncoding .EncodeToString ([]byte (testSSHKey ))
420420
421421 t .Run ("Base64/Success" , func (t * testing.T ) {
422+ t .Parallel ()
423+
422424 signer , err := gossh .ParsePrivateKey ([]byte (testSSHKey ))
423425 require .NoError (t , err )
424426 require .NotNil (t , signer )
@@ -440,6 +442,8 @@ func TestGitSSHAuth(t *testing.T) {
440442 })
441443
442444 t .Run ("Base64/Failure" , func (t * testing.T ) {
445+ t .Parallel ()
446+
443447 _ , randomKey , err := ed25519 .GenerateKey (nil )
444448 require .NoError (t , err )
445449 signer , err := gossh .NewSignerFromKey (randomKey )
@@ -591,6 +595,8 @@ func TestBuildFromDockerfile(t *testing.T) {
591595}
592596
593597func TestBuildPrintBuildOutput (t * testing.T ) {
598+ t .Parallel ()
599+
594600 // Ensures that a Git repository with a Dockerfile is cloned and built.
595601 srv := gittest .CreateGitServer (t , gittest.Options {
596602 Files : map [string ]string {
@@ -619,6 +625,8 @@ func TestBuildPrintBuildOutput(t *testing.T) {
619625}
620626
621627func TestBuildIgnoreVarRunSecrets (t * testing.T ) {
628+ t .Parallel ()
629+
622630 // Ensures that a Git repository with a Dockerfile is cloned and built.
623631 srv := gittest .CreateGitServer (t , gittest.Options {
624632 Files : map [string ]string {
@@ -631,6 +639,8 @@ func TestBuildIgnoreVarRunSecrets(t *testing.T) {
631639 require .NoError (t , err )
632640
633641 t .Run ("ReadWrite" , func (t * testing.T ) {
642+ t .Parallel ()
643+
634644 ctr , err := runEnvbuilder (t , runOpts {
635645 env : []string {
636646 envbuilderEnv ("GIT_URL" , srv .URL ),
@@ -645,6 +655,8 @@ func TestBuildIgnoreVarRunSecrets(t *testing.T) {
645655 })
646656
647657 t .Run ("ReadOnly" , func (t * testing.T ) {
658+ t .Parallel ()
659+
648660 ctr , err := runEnvbuilder (t , runOpts {
649661 env : []string {
650662 envbuilderEnv ("GIT_URL" , srv .URL ),
@@ -660,6 +672,8 @@ func TestBuildIgnoreVarRunSecrets(t *testing.T) {
660672}
661673
662674func TestBuildWithSetupScript (t * testing.T ) {
675+ t .Parallel ()
676+
663677 // Ensures that a Git repository with a Dockerfile is cloned and built.
664678 srv := gittest .CreateGitServer (t , gittest.Options {
665679 Files : map [string ]string {
@@ -751,6 +765,8 @@ func TestBuildFromDevcontainerInRoot(t *testing.T) {
751765}
752766
753767func TestBuildCustomCertificates (t * testing.T ) {
768+ t .Parallel ()
769+
754770 srv := gittest .CreateGitServer (t , gittest.Options {
755771 Files : map [string ]string {
756772 "Dockerfile" : "FROM " + testImageAlpine ,
@@ -772,6 +788,8 @@ func TestBuildCustomCertificates(t *testing.T) {
772788}
773789
774790func TestBuildStopStartCached (t * testing.T ) {
791+ t .Parallel ()
792+
775793 // Ensures that a Git repository with a Dockerfile is cloned and built.
776794 srv := gittest .CreateGitServer (t , gittest.Options {
777795 Files : map [string ]string {
@@ -1269,6 +1287,8 @@ func setupPassthroughRegistry(t *testing.T, image string, opts *setupPassthrough
12691287}
12701288
12711289func TestNoMethodFails (t * testing.T ) {
1290+ t .Parallel ()
1291+
12721292 _ , err := runEnvbuilder (t , runOpts {env : []string {}})
12731293 require .ErrorContains (t , err , envbuilder .ErrNoFallbackImage .Error ())
12741294}
@@ -1340,6 +1360,8 @@ COPY %s .`, testImageAlpine, inclFile)
13401360 tc := tc
13411361
13421362 t .Run (tc .name , func (t * testing.T ) {
1363+ t .Parallel ()
1364+
13431365 srv := gittest .CreateGitServer (t , gittest.Options {
13441366 Files : tc .files ,
13451367 })
0 commit comments