File tree 2 files changed +3
-6
lines changed
instrumentation/github.com/bradfitz/gomemcache
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
18
18
- Remove service name as a parameter of Sarama instrumentation. (#221 )
19
19
- Replace ` WithTracer ` with ` WithTracerProvider ` in Sarama instrumentation. (#221 )
20
20
- Switch to use common top-level module ` SemVersion() ` when creating versioned tracer in ` bradfitz/gomemcache ` . (#226 )
21
+ - Use ` IntegrationShouldRun ` in ` gomemcache_test ` . (#254 )
21
22
22
23
### Fixed
23
24
Original file line number Diff line number Diff line change 15
15
package gomemcache
16
16
17
17
import (
18
- "fmt"
19
18
"os"
20
19
"testing"
21
20
22
21
mocktracer "go.opentelemetry.io/contrib/internal/trace"
22
+ "go.opentelemetry.io/contrib/internal/util"
23
23
"go.opentelemetry.io/otel/api/kv"
24
24
"go.opentelemetry.io/otel/api/standard"
25
25
oteltrace "go.opentelemetry.io/otel/api/trace"
@@ -31,11 +31,7 @@ import (
31
31
)
32
32
33
33
func TestMain (m * testing.M ) {
34
- _ , ok := os .LookupEnv ("INTEGRATION" )
35
- if ! ok {
36
- fmt .Println ("--- SKIP: to enable integration test, set the INTEGRATION environment variable" )
37
- os .Exit (0 )
38
- }
34
+ util .IntegrationShouldRun ("test-gomemcache" )
39
35
os .Exit (m .Run ())
40
36
}
41
37
You can’t perform that action at this time.
0 commit comments