File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
test/integration/networks Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ package networks
16
16
17
17
import (
18
18
"fmt"
19
+ "os"
19
20
"strings"
20
21
"testing"
21
22
"time"
@@ -309,11 +310,24 @@ func TestNetworks(t *testing.T) {
309
310
},
310
311
}
311
312
312
- for _ , envName := range []string {
313
- "production" ,
314
- "development" ,
315
- "nonproduction" ,
316
- } {
313
+ envStage := os .Getenv (utils .RUN_STAGE_ENV_VAR )
314
+ var envNames []string
315
+
316
+ if strings .Contains (envStage , "teardown" ) {
317
+ envNames = []string {
318
+ "nonproduction" ,
319
+ "development" ,
320
+ "production" ,
321
+ }
322
+ } else {
323
+ envNames = []string {
324
+ "production" ,
325
+ "development" ,
326
+ "nonproduction" ,
327
+ }
328
+ }
329
+
330
+ for _ , envName := range envNames {
317
331
envName := envName
318
332
t .Run (envName , func (t * testing.T ) {
319
333
You can’t perform that action at this time.
0 commit comments