Skip to content

Commit 515c521

Browse files
committed
lint err cleanup
1 parent c9110e4 commit 515c521

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

client/binding_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestInvokeBinding(t *testing.T) {
1212
client, closer := getTestClient(ctx, t)
1313
defer closer()
1414

15-
mIn := make(map[string]string, 0)
15+
mIn := make(map[string]string)
1616
mIn["test"] = "value"
1717

1818
out, mOut, err := client.InvokeBinding(ctx, "serving", "EchoMethod", []byte("ping"), mIn)

client/client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ func getTestClient(ctx context.Context, t *testing.T) (client Client, closer fun
3939
s := grpc.NewServer()
4040

4141
server := &testDaprServer{
42-
state: make(map[string][]byte, 0),
42+
state: make(map[string][]byte),
4343
}
4444

4545
pb.RegisterDaprServer(s, server)
4646

4747
go func() {
4848
if err := s.Serve(l); err != nil {
49-
t.Fatalf("test server exited with error: %v", err)
49+
logger.Fatalf("test server exited with error: %v", err)
5050
}
5151
}()
5252

@@ -110,7 +110,7 @@ func (s *testDaprServer) InvokeBinding(ctx context.Context, req *pb.InvokeBindin
110110
}
111111

112112
func (s *testDaprServer) GetSecret(ctx context.Context, req *pb.GetSecretRequest) (*pb.GetSecretResponse, error) {
113-
d := make(map[string]string, 0)
113+
d := make(map[string]string)
114114
d["test"] = "value"
115115
return &pb.GetSecretResponse{
116116
Data: d,

client/secret_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/stretchr/testify/assert"
88
)
99

10-
func GetSecret(t *testing.T) {
10+
func TestGetSecret(t *testing.T) {
1111
ctx := context.Background()
1212
client, closer := getTestClient(ctx, t)
1313
defer closer()
@@ -16,7 +16,7 @@ func GetSecret(t *testing.T) {
1616
assert.Nil(t, err)
1717
assert.NotNil(t, out)
1818

19-
in := make(map[string]string, 0)
19+
in := make(map[string]string)
2020
in["test"] = "value"
2121

2222
out, err = client.GetSecret(ctx, "store", "key1", in)

0 commit comments

Comments
 (0)