Skip to content

Commit

Permalink
Make linter pass on functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KJTsanaktsidis committed May 10, 2020
1 parent d8f6eca commit 509158a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package sarama
import (
"context"
"fmt"
toxiproxy "github.com/Shopify/toxiproxy/client"
"io"
"log"
"net"
Expand All @@ -18,6 +17,8 @@ import (
"strings"
"testing"
"time"

toxiproxy "github.com/Shopify/toxiproxy/client"
)

const (
Expand All @@ -27,20 +28,20 @@ const (
var (
testTopicDetails = map[string]*TopicDetail{
"test.1": {
NumPartitions: 1,
ReplicationFactor: 3,
NumPartitions: 1,
ReplicationFactor: 3,
},
"test.4": {
NumPartitions: 4,
ReplicationFactor: 3,
NumPartitions: 4,
ReplicationFactor: 3,
},
"test.64": {
NumPartitions: 64,
ReplicationFactor: 3,
NumPartitions: 64,
ReplicationFactor: 3,
},
"uncommitted-topic-test-4": {
NumPartitions: 1,
ReplicationFactor: 3,
NumPartitions: 1,
ReplicationFactor: 3,
},
}

Expand Down Expand Up @@ -80,10 +81,10 @@ func testMain(m *testing.M) int {
if !usingExisting {
err := prepareDockerTestEnvironment(ctx, &env)
if err != nil {
tearDownDockerTestEnvironment(ctx, &env)
_ = tearDownDockerTestEnvironment(ctx, &env)
panic(err)
}
defer tearDownDockerTestEnvironment(ctx, &env)
defer tearDownDockerTestEnvironment(ctx, &env) // nolint:errcheck
}
if err := prepareTestTopics(ctx, &env); err != nil {
panic(err)
Expand Down

0 comments on commit 509158a

Please sign in to comment.