Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command: drop go test -short mode #972

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading