Use IntegrationShouldRun in gomemcache_test (#254)
* Use IntegrationShouldRun in gomemcache_test * Update CHANGELOG.md Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									0171becaf0
								
							
						
					
					
						commit
						bf0a55584c
					
				| 
						 | 
				
			
			@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
 | 
			
		|||
- Remove service name as a parameter of Sarama instrumentation. (#221)
 | 
			
		||||
- Replace `WithTracer` with `WithTracerProvider` in Sarama instrumentation. (#221)
 | 
			
		||||
- Switch to use common top-level module `SemVersion()` when creating versioned tracer in `bradfitz/gomemcache`. (#226)
 | 
			
		||||
- Use `IntegrationShouldRun` in `gomemcache_test`. (#254)
 | 
			
		||||
 | 
			
		||||
### Fixed
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,11 +15,11 @@
 | 
			
		|||
package gomemcache
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"os"
 | 
			
		||||
	"testing"
 | 
			
		||||
 | 
			
		||||
	mocktracer "go.opentelemetry.io/contrib/internal/trace"
 | 
			
		||||
	"go.opentelemetry.io/contrib/internal/util"
 | 
			
		||||
	"go.opentelemetry.io/otel/api/kv"
 | 
			
		||||
	"go.opentelemetry.io/otel/api/standard"
 | 
			
		||||
	oteltrace "go.opentelemetry.io/otel/api/trace"
 | 
			
		||||
| 
						 | 
				
			
			@ -31,11 +31,7 @@ import (
 | 
			
		|||
)
 | 
			
		||||
 | 
			
		||||
func TestMain(m *testing.M) {
 | 
			
		||||
	_, ok := os.LookupEnv("INTEGRATION")
 | 
			
		||||
	if !ok {
 | 
			
		||||
		fmt.Println("--- SKIP: to enable integration test, set the INTEGRATION environment variable")
 | 
			
		||||
		os.Exit(0)
 | 
			
		||||
	}
 | 
			
		||||
	util.IntegrationShouldRun("test-gomemcache")
 | 
			
		||||
	os.Exit(m.Run())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue