Skip to content

Commit

Permalink
Use IntegrationShouldRun in gomemcache_test (#254)
Browse files Browse the repository at this point in the history
* Use IntegrationShouldRun in gomemcache_test

* Update CHANGELOG.md

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
  • Loading branch information
dengliming and MrAlias committed Aug 24, 2020
1 parent 0171bec commit bf0a555
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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())
}

Expand Down

0 comments on commit bf0a555

Please sign in to comment.