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:
dengliming 2020-08-25 00:54:37 +08:00 committed by GitHub
parent 0171becaf0
commit bf0a55584c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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())
}