@@ -52,6 +52,7 @@ func healthyRunningMock(t *testing.T) *runtime.MockRuntime {
5252var awsContainers = []config.ContainerConfig {{Type : config .EmulatorAWS }}
5353
5454func TestSave_Success (t * testing.T ) {
55+ t .Parallel ()
5556 dir := t .TempDir ()
5657 dest := filepath .Join (dir , "snap" )
5758 exporter := & fakeExporter {body : []byte ("ZIP_DATA" )}
@@ -89,6 +90,7 @@ func TestSave_Success(t *testing.T) {
8990}
9091
9192func TestSave_EmulatorNotRunning (t * testing.T ) {
93+ t .Parallel ()
9294 ctrl := gomock .NewController (t )
9395 mockRT := runtime .NewMockRuntime (ctrl )
9496 mockRT .EXPECT ().IsHealthy (gomock .Any ()).Return (nil )
@@ -118,6 +120,7 @@ func TestSave_EmulatorNotRunning(t *testing.T) {
118120}
119121
120122func TestSave_UnhealthyRuntime (t * testing.T ) {
123+ t .Parallel ()
121124 ctrl := gomock .NewController (t )
122125 mockRT := runtime .NewMockRuntime (ctrl )
123126 mockRT .EXPECT ().IsHealthy (gomock .Any ()).Return (fmt .Errorf ("docker unavailable" ))
@@ -133,6 +136,7 @@ func TestSave_UnhealthyRuntime(t *testing.T) {
133136}
134137
135138func TestSave_ExporterError (t * testing.T ) {
139+ t .Parallel ()
136140 dir := t .TempDir ()
137141 dest := filepath .Join (dir , "snap" )
138142 exporter := & fakeExporter {err : fmt .Errorf ("connection refused" )}
@@ -147,6 +151,7 @@ func TestSave_ExporterError(t *testing.T) {
147151}
148152
149153func TestSave_DestinationDirNotExist (t * testing.T ) {
154+ t .Parallel ()
150155 dest := "/no/such/dir/snap"
151156 exporter := & fakeExporter {body : []byte ("ZIP_DATA" )}
152157 sink := output .NewPlainSink (io .Discard )
@@ -157,6 +162,7 @@ func TestSave_DestinationDirNotExist(t *testing.T) {
157162}
158163
159164func TestSave_OverwritesExistingFile (t * testing.T ) {
165+ t .Parallel ()
160166 dir := t .TempDir ()
161167 path := filepath .Join (dir , "snap" )
162168 require .NoError (t , os .WriteFile (path , []byte ("OLD" ), 0600 ))
@@ -174,6 +180,7 @@ func TestSave_OverwritesExistingFile(t *testing.T) {
174180}
175181
176182func TestSave_ContextCancelled (t * testing.T ) {
183+ t .Parallel ()
177184 ctx , cancel := context .WithCancel (context .Background ())
178185 cancel ()
179186
0 commit comments