Skip to content

Commit

Permalink
Merge pull request #972 from mackerelio/no-short
Browse files Browse the repository at this point in the history
command: drop `go test -short` mode
  • Loading branch information
lufia authored Feb 26, 2024
2 parents eaa8bf5 + 012d25d commit 308518b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions command/command_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package command
import (
"reflect"
"testing"
"time"

"github.com/mackerelio/mackerel-agent/config"
mkr "github.com/mackerelio/mackerel-client-go"
Expand All @@ -15,14 +14,6 @@ import (
var diceCommand = "go run ../_example/metrics-plugins/dice-with-meta.go"

func TestRunOnce(t *testing.T) {
if testing.Short() {
origMetricsInterval := metricsInterval
metricsInterval = 1 * time.Second
defer func() {
metricsInterval = origMetricsInterval
}()
}

conf := &config.Config{
MetricPlugins: map[string]*config.MetricPlugin{
"metric1": {
Expand All @@ -42,14 +33,6 @@ func TestRunOnce(t *testing.T) {
}

func TestRunOncePayload(t *testing.T) {
if testing.Short() {
origMetricsInterval := metricsInterval
metricsInterval = 1 * time.Second
defer func() {
metricsInterval = origMetricsInterval
}()
}

conf := &config.Config{
MetricPlugins: map[string]*config.MetricPlugin{
"metric1": {
Expand Down

0 comments on commit 308518b

Please sign in to comment.