mirror of https://github.com/portainer/portainer
				
				
				
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			297 B
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			297 B
		
	
	
	
		
			Go
		
	
	
package test
 | 
						|
 | 
						|
import (
 | 
						|
	"os"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
// EnsureIntegrationTest disables live integration tests that prevent portainer CI checks from succeeding on github
 | 
						|
func EnsureIntegrationTest(t *testing.T) {
 | 
						|
	if _, ok := os.LookupEnv("INTEGRATION_TEST"); !ok {
 | 
						|
		t.Skip("skip an integration test")
 | 
						|
	}
 | 
						|
}
 |